1.

What is the output of below code snippet? enum Levels { private BOTTOM, public MEDIUM, protected TOP;}

A. Runtime Error
B. EnumNotDefined Exception
C. Compilation Error
D. It runs successfully
E. None of these
Answer» D. It runs successfully


Discussion

No Comment Found

Related MCQs