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.
PreviousNextRelated