113
Java Date hashCode() Method
The hashCode() method of Java Date class returns a value which is a hash code for this object. This method overrides hashCode in class Object.
Syntax:
Parameters
NA
Return
It returns a hashCode value for this object.
Example 1
Output:
hash code for date object 'd' : 2104094480
Example 2
Output:
hash code for date object 'd' : 1000
Next Topicjava.util.Date