Multiple Choice
Look at the following declaration: enum Tree { OAK, MAPLE, PINE }
What is the ordinal value of the MAPLE enum constant?
A) 0
B) 1
C) 2
D) 3
E) Tree.MAPLE
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q3: If the this variable is used to
Q10: If you have defined a class SavingsAccount
Q11: When the this variable is used to
Q12: When a field is declared static, there
Q13: Enumerated types have this method, which returns
Q16: Enum constants have a toString method.
Q17: Which of the following is NOT true
Q18: Look at the following declaration: enum Tree
Q19: A static field is created by placing:<br>A)
Q20: CRC stands for:<br>A) Code, Reuse, Constancy<br>B) Class,