Multiple Choice
Assuming the following declaration exists:
Enum Tree { OAK, MAPLE, PINE }
What will the following code display?
System.out.println(Tree.OAK) ;
A) OAK
B) Tree.OAK
C) 0
D) 1
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q5: The names of the enum constants in
Q14: If you write a toString method for
Q15: The key word this is the name
Q23: An enumerated data type is actually a
Q27: The JVM periodically performs this process to
Q29: By default, a reference variable that is
Q30: If the following is from the method
Q33: Overloading is<br>A) writing a method that does
Q34: A declaration for an enumerated type begins
Q49: When a field is declared static there