Srikanth Nakka wrote:
Thanks for your help and i have one more doubt that
Hashcodes have nothing to do with there references
so what is the use of hashcode, if you can specify an example that better .
Thanks
Hashcodes are use by the hashing collections -- Hashtable, HashMap, HashSet, ConcurrentHashMap, etc... See those classes for more information.
Furthermore, the subject of hashing is not specific to
Java. You may want to google hashing for more information on the topic.
Henry