English

What is the purpose of using break statement? - Computer Applications

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]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.09 Iterative Constructs in Java
EXERCISES | Q V. 4. (a) | Page 124
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×