Java Calendar getActualMinimum() MethodThe getActualMinimum() method of java.util.Calendar class returns an integer value which is the Minimum possible value of the calendar field passed as parameter to getActualMinimum() methot. For example Minimum value for DATE field is 1 and similarly Minimum value for MONTH field is 0 . SyntaxParameterfield - the field of calendar like MONTH, HOUR , DAY_OF_MONTH etc. ReturnsReturns an integer value which is maximum value of field passed as parameter. ThrowsDoesn't throw any exception. Example 1Output: Minimum year value:1 Minimum Month value:0 Minimum Day value:1 Example 2Output: Minimum HOUR value is:0 Minimum Minute value is:0 Minimum Second value is:0 Example 3Output: Minimum value for DAY_OF_WEEK_IN_MONTH is :1 Minimum value for DAY_OF_MONTH is :1 Minimum value for DATE is :1 |
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