What is the output of the following code?
public void select(){int a = 2;switch(a){Case 1: {System.out.println(case 1);}Case 2: {System.out.println(case 2);}Case 2: {System.out.println(case 2 repeated);}default: {System.out.println(default);}}}
Reveal answer
Fill a bubble to check yourself