Assume Calendar calendar = new GregorianCalendar(). __________ returns the month 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)
a. calendar.get(Calendar.MONTH)
B is wrong since Calendar.MONTH_OF_YEAR is not a valid field.
Computer Science & Information Technology