Assume Calendar calendar = new GregorianCalendar(). __ returns the number of days in a month.

Assume Calendar calendar = new GregorianCalendar(). __ returns the number of days in a month.


A. calendar.get(Calendar.MONTH)
B. calendar.get(Calendar.MONTH_OF_YEAR)
C. calendar.get(Calendar.WEEK_OF_MONTH)
D. calendar.get(Calendar.WEEK_OF_YEAR)
E. calendar.getActualMaximum(Calendar.DAY_OF_MONTH)

The correct answer is E


Java

Learn More Multiple Choice Question :