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

You might also like to view...

A1 is an example of a cell ________

A) title B) view C) address D) heading

Computer Science & Information Technology

Which of the following is a completely relative cell reference?

a. J4 b. $J4 c. J$4 d. $J$4

Computer Science & Information Technology