Why do I need to override the equals and hashCode methods in Java?
Recently I read through this Developer Works Document. The document is all about defining hashCode() and equals() effectively and correctly, however I am not able to figure out why we need to override these two methods. How can I take the decision to implement these methods efficiently? 3Best Answer 31