What is the purpose of the "break" keyword in Java?
A. To terminate a loop or switch statement.
B. To skip the current iteration of a loop.
C. To continue with the next iteration of a loop.
D. None of the above.
Answer:A
What is the purpose of the "break" keyword in Java?
A. To terminate a loop or switch statement. B. To skip the current iteration of a loop. C. To continue with the next iteration of a loop. D. None of the above.