Solved

Assuming the Following Declaration Exists: Enum Tree { OAK, MAPLE

Question 36

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions