What is the purpose of the "break" keyword in Java?
A. To exit a loop or switch statement.
B. To continue to the next iteration of a loop.
C. To throw an exception.
D. None of the above
Answer:A
What is the purpose of the "break" keyword in Java?
A. To exit a loop or switch statement. B. To continue to the next iteration of a loop. C. To throw an exception. D. None of the above