105
Java Collection hashCode() Method
The hashCode() method of Java Collection Interface returns the hash code value for this collection.
Syntax
Parameters
NA
Overrides
This method overrides hashCode in class Object
Return
The hashCode() method returns the hash code value for this collection.
Example 1
Output:
Hash Code : 8
Example 2
Output:
Hash Code : 157560278
Next TopicJava Collection