Overriding hashCode()

Overriding hashCode()

hashcode() value of an object is basically use for the some collections classes. 

Even we can think of it as kind of an object ID number, it isn\'t necessarily unique.

Collections such as HashMap and HashSet use the hashcode value of an object to determine where the object should be stored in the collection, and the hashcode is used again to help locate the object in the collection.

Date:2013-03-09 00:00:00

Post Your Answers

User Email:

User Name:

Related scjp1.5 chap8 Links

scjp1.5 chap8 interview questions and answers for experienced and fresher