Java Date hashCode() MethodThe 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:ParametersNA ReturnIt returns a hashCode value for this object. Example 1Test it NowOutput: hash code for date object 'd' : 2104094480 Example 2Test it NowOutput: hash code for date object 'd' : 1000
Next Topicjava.util.Date
|