Java Instant equals() methodThe equals () method of Java Instant class is used to check if this instant is equal to the specified instant. SyntaxParametersotherInstant - The other instant, null returns false. ReturnTrue, if the other instant is equal to this one, else false. Example 1Output: The output will be like this. Instant 1: 2018-08-18T10:37:30Z Instant 2: 2018-08-18T10:37:30Z Instant 2 is not same as Instant 1. Example 2Output: false Next TopicJava-instant-atzone-method |
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