Given:
executed with this command:
java Main one two three
What is the result?
A. 0). one
B. 0). one
1). two
2). three
C. The compilation fails.
D. It creates an infinite loop printing:
0). one
1). two
1). two …
E. A java.lang.NullPointerException is thrown.
The correct answer is C as continue cannot be used inside a switch statement.
Correct Answer is D