Programming MCQS - QUESTION DETAILS

What is the purpose of the 'break' statement in a loop in Java?
A. Skip to the next iteration
B. Exit the loop
C. Restart the loop
D. Skip to the next loop

'break' is used to exit a loop in Java.

Similar Questions

What is the purpose of the 'sizeof' operator in C?






In C, how do you declare a constant?






What does the 'printf' function do in C?






How do you define a function in C?






What is the purpose of the 'break' statement in a switch statement?






How is a single-line comment written in C?






What is the purpose of the 'typedef' keyword in C?






What is the role of 'calloc' function in C?






Which of the following is not a valid C data type?






What is the output of printf("%d", 5 + 3 * 2);?