Java Calendar isLenient() MethodThe isLenient() method of Calendar class returns the Boolean value true if the interpretation mode of this calendar is lenient; false otherwise. SyntaxParameterNo parameter is passed. ReturnsReturns Boolean value. ThrowsDoes not throw Exception. Example 1Output: Current Date and Time is Mon Aug 13 21:24:01 PDT 2018 Interpretation is lenient: true NOW Date and Time is Mon Nov 11 21:24:01 PST 1996 Interpretation is lenient: true Example 2Output: Date and Time is Mon Aug 13 21:41:24 PDT 2018 Is lenient: true Next TopicJava-calendar-isset-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