Properties of hashcode() method in Java

This method gives hash code value of the Object.

Note:
1.During execution of same Object in Java application,the hashcode must return same integer values.
This integer need not remain consistent from one execution of an application to another execution of the same application.
2.If two objects are equal according to equals(object),then hashcode method must returns same integer values.

Comments

Post a Comment