5. What will happen when you compile and run the following code?
public class Example {
private static final int ON = 1;
private static final int OFF = 0;
public static void main(String[] args){
int state = 1;
switch(state){
case ON:
System.out.println("On");
break;
default:
System.out.println("Unknown");
case OFF:
System.out.println("Off");
}
}
}