GregorianCalendar getMaximum() Method in Java
The java.util.GregorianCalendar.getMaximum() method is an in-built function in Java which returns the maximum value for the particular calendar field passed as parameter to the function. For any possible time value, it is the highest value that the get() method returns, considering the current value