Q127
What will be the output of the following Java 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
Answer10
10
B.
Compilation Error
C.
10
10
10
D.
Runtime Exception
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board