99
Java Object hashCode() Method
hashCode() is the method of Object class. This method returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by HashMap.
Syntax
Returns
It returns a hash code value for this object.
Example 1
Output:
HashCode : [email protected]
Example 2
Output:
HashCode : [email protected]
Next TopicJava Object Class