Programming Tutorials

Comment on Tutorial - equals() and hashCode() in Hibernate By Dorris



Comment Added by : Javin @ FIX Protocol Tutorials

Comment Added at : 2011-02-23 00:47:41

Comment on Tutorial : equals() and hashCode() in Hibernate By Dorris
Nice article but I believe its important to understand the consequences of not following this contract as well and for that its important to understand application of hashcode in collection classes e.g. <a href="http://javarevisited.blogspot.com/2011/02/how-hashmap-works-in-java.html">How HashMap works in Java</a> and how hashcode() of key is used to insert and retrieve object from hashMap.

Javin


View Tutorial