What will happen when you compile and run the following program?
public class X
{
public static void main(final String[] args)
{
int i=1;
switch (i)
{
case 0:
System.out.println(i);
case 1:
System.out.println(i);
case 2:
System.out.println(i);
default:
System.out.println(i);
}
}
}
A) Output: 1
B) Output: 1 2
C) Output: 1 2 3
D) Output: 1 2
E) Output: 1 1
F) Output: 1 1 1