What will happen when you compile and run the following program?
public class X
{
public static void main(final String[] args)
{
int i=3;
switch (i)
{
default:
System.out.println("default");
case 0:
System.out.println("zero");
case 1:
System.out.println("one");
}
}
}
A) Error: "Switch block must end with default case."
B) Error: "Missing break statement in case block."
C) Error: "Variable 'i' must be declared final when used in switch statement."
D) No output.
E) Output: default zero one
F) Output: default