Java Timestamp after() MethodThe after() method of Java Timestamp class returns Boolean value true if this Timestamp object is later than given Timestamp object. SyntaxParametersThe parameter 'ts' represents the Timestamp to compare with. ReturnsThe after() method of Timestamp class returns :
Example 1Test it NowOutput: Boolean value returned : false Example 2Test it NowOutput: Reema is younger than Geetanjali
Next TopicJava Timestamp
|