Java OCA OCP Practice Question 403

Question

Using a break in a while loop causes the loop to break the current iteration and start the next iteration of the loop.

Select 1 option

  • A. True
  • B. False


Correct Option is  : B

Note

The break statement is to break out of any loop completely.

So the current iteration and any other remaining iterations of the loop will not execute.

Control is transferred to the first statement after the loop.




PreviousNext

Related