Assume Calendar calendar = new GregorianCalendar(). __ returns the week of the year.

Assume Calendar calendar = new GregorianCalendar(). __________ returns the week of the year.


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)

The correct answer is D


Java

Learn More Multiple Choice Question :