Multiple Choice
A new method, getMonthName, to get the name of the Date's month ("January", February", etc.) is to be added to the class Date.The Date class already has a class variable that stores the month as an integer.Which of the following headers should the new method have?
A) public String getMonthName(int month)
B) public String getMonthName()
C) public void getMonthName(String monthName)
D) public void getMonthName(int month, String monthName)
Correct Answer:

Verified
Correct Answer:
Verified
Q54: The use of the static keyword in
Q55: Which of the following is true regarding
Q56: The String class is an example of
Q57: Consider the method in the following code
Q58: Where in a class should static variables
Q60: Which of the following classes has a
Q61: Which of the following is considered by
Q62: Which of the following can potentially be
Q63: Suppose an object is intended to store
Q64: A class (ClassOne) is considered to have