Java OCA OCP Practice Question 5

Question

What Java statement is used to completely abort the execution of a loop?

  • A. The continue statement.
  • B. The goto statement.
  • C. The exit statement.
  • D. The break statement.


D.

Note

The break statement causes a loop's execution to be terminated.




PreviousNext

Related