Live quiz

java - Part 6

Question 1 of 25 Hints left: 3
Q1

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
  • B
  • C
  • D