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 B is wrong since Calendar.MONTH_OF_YEAR is not a valid field.
Computer Science & Information Technology
You might also like to view...
Paraphrasing content from a website into your research paper without documenting the source is considered plagiarism
Indicate whether the statement is true or false
Computer Science & Information Technology
Suggest reports that might be useful to Mountain High’s management
What will be an ideal response?
Computer Science & Information Technology