Java Calendar hashCode() MethodThe hashCode() method of java is method of object class and object class is ultimate super class of all classes in java. hashCode() method is overloaded by all other classes in java. This method returns hash code for calendar object. SyntaxParameterNo parameter is passed. ReturnsA hash code value for calendar object. ThrowsDoes not throw Exception. Example 1Output: The current time: Fri Aug 10 11:38:27 PDT 2018 Hash Code 999473001 Example 2Output: current Time : Fri Aug 10 11:48:02 PDT 2018 Hash Code:999946776 Next TopicJava Process |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India