---
title: "If you’re overriding the method equals() of an object, which other method you might also consider?"  
description: "If you’re overriding the method equals() of an object, which other method you might also consider?"  
author: "Chris Anderson"  
published: 2012-06-13  
updated: 2020-09-19  
canonical: https://www.mindstick.com/interview/1476/if-you-re-overriding-the-method-equals-of-an-object-which-other-method-you-might-also-consider  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# If you’re overriding the method equals() of an object, which other method you might also consider?

hashCode()

## Answers

### Answer by Chris Anderson

hashCode()


---

Original Source: https://www.mindstick.com/interview/1476/if-you-re-overriding-the-method-equals-of-an-object-which-other-method-you-might-also-consider

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
