Vidyalelo
Java Programming · Q79

Data Types and Variables

Programming · Java Programming · question 79

Q79

What will be the output of the following Java code snippet? enum Levels private TOP, public MEDIUM, protected BOTTOM;

A.
Runtime Error
B.
EnumNotDefined Exception
C.
It runs successfully
D.
Compilation Error
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board