Multiple Choice
Assuming the following declaration exists: enum Tree { OAK, MAPLE, PINE }
What will the following code display?
System.out.println(Tree.OAK) ;
A) Tree.OAK
B) 0
C) 1
D) OAK
E) Nothing. This statement will cause an error.
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q13: Both instance fields and instance methods are
Q31: If the following is from the method
Q32: If you attempt to perform an operation
Q33: If the following is from the method
Q36: When an object reference is passed to
Q37: What will be returned from a method,
Q39: The this key word is the name
Q40: Assume the class BankAccount has been created,
Q41: Which of the following is NOT true
Q43: If a class has a method named