14. What output does the following code produces?
int a = 1;
switch (a)
case 1:
System.out.println ("Ist Division");
case 2:
System.out.println ("lind Division");
case 3:
System.out.println ("Ilird Division");
default :
System.out.println ("fail");
}
Answers
Answered by
3
Answer:
output : Ist Division
Explanation:
Since a is 1 the firstvswitvh case will be executed.
Similar questions