Overriding equals() and hashCode() in Java
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/27581/overriding-equals-and-hashcode-in-java">Overriding equals and hashCode in Java</a>  </p>
</blockquote>



<p>All,</p>

<p>I have defined my class and which to override equals() and hashCode () methods as well. But I have no idea of what specifically these methods should be implemented for my own class. Can anyone please shed some light on the implementation of these methods for custom classes?</p>
