What is the difference between a break statement and a continue statement in Java?
A. A break statement terminates the loop and jumps to the next statement outside the loop, while a continue statement skips the current iteration of the loop and jumps to the next iteration.
B. A break statement skips the current iteration of the loop and jumps to the next iteration, while a continue statement terminates the loop and jumps to the next statement outside the loop.
C. A break statement and a continue statement are the same thing in Java.
D. None of the above.
Answer:A
What is the difference between a break statement and a continue statement in Java?
A. A break statement terminates the loop and jumps to the next statement outside the loop, while a continue statement skips the current iteration of the loop and jumps to the next iteration. B. A break statement skips the current iteration of the loop and jumps to the next iteration, while a continue statement terminates the loop and jumps to the next statement outside the loop. C. A break statement and a continue statement are the same thing in Java. D. None of the above.