Java Programming Language Quiz - 4
Casual Mode - Take your time!
1 / 9
Correct
0
Incorrect
0
Score
0%
Multiple Answers
What is the output of following piece of code ?
int x = 2;
switch (x) {
case 1:System.out.println("1?);
case 2:
case 3:System.out.println("3?);
case 4:
case 5:System.out.println("5?);
}
- No output
- 3 and 5
- 1, 3 and 5
- 3