1.

What is the output of below code snippet? enum Enums { A, B, C; private Enums() { System.out.println(10); } } public class MainClass { public static void main(String[] args) { Enum en = Enums.B; } }

A. 10 10 10
B. Compilation Error
C. Runtime Exception
D. 10 10
Answer» B. Compilation Error


Discussion

No Comment Found