Advertisements
Advertisements
Question
What is the purpose of using break statement?
One Line Answer
Solution
The break statement ends the current iteration of the loop as well as the loop as a whole.
shaalaa.com
Is there an error in this question or solution?
Chapter 1.09: Iterative Constructs in Java - EXERCISES [Page 124]