Multiple Choice
We want the toString method to return strings like 3/16/2014.Give the body of the toString method.
A) return "m/d/y";
B) return month + "/" + day + "/" + year;
C) return m + "/" + d + "/" + y;
D) return "month/day/year";
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q2: Which of the following denotes the implicit
Q3: When a method exits, its _ are
Q4: When using index cards to help with
Q5: Which of the following is a valid
Q6: Consider the following method header for an
Q8: When are local variables initialized?<br>A)Local variables are
Q9: What is a parameter variable?<br>A)A variable that
Q10: We want to create a class that
Q11: Why is it a good idea for
Q12: Which lines would need to be added