What is the purpose of the "break" statement in a "switch" statement?
A. Terminates the program
B. Repeats the case statements
C. Exits the loop containing the switch statement
D. Exits the switch statement prematurely
Answer: Option D
Related Questions on Flow Control
What is the purpose of the "if" statement in Java?
A. To execute a block of code conditionally
B. To create loops
C. To declare variables
D. To define methods
A. No output
B. Error
C. Hello
D. 5
Join The Discussion