Java Calendar hashCode() MethodThe hasgCode() 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 1Test it NowOutput: The current time: Fri Aug 10 11:38:27 PDT 2018 Hash Code 999473001 Example 2Test it NowOutput: current Time : Fri Aug 10 11:48:02 PDT 2018 Hash Code:999946776
Next TopicJava Calendar Class
|