The hashCode() Contract

The hashCode() Contract

hashCode() contract is basically use for the drum roll.........

When its invoked in the java application then its application is in execution mode.Its must be consistently return the same integer, provided no information used in equals() comparisons on the object is modified.

If two objects are equal according to the equals(Object) method, then calling the hashCode() method on each of the two objects must produce the same integer result.

By:umang
Date:2013-03-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related scjp1.5 chap8 Links

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