(Choose 1 answer)
public class Agg{
What will happen when you attempt to compile and run the following code?
static public long i=10;
public static void main(String argv[]){
switch(i){
default:
System.out.println("no value given");
case 1:
System.out.println("one");
case 10:
System.out.println("ten");
case 5:
System.out.println("five");
}
}
}
A. Compile time error
B. Output of "ten" followed by "five"
C. Output of "ten"
D. Compilation and run time error because of location of default
Exit 27