Advertisements
Advertisements
Question
The ______ break is used to terminate the outer loop from the block of inner loop.
Options
Level
Labelled
Unlabelled
Forced
MCQ
Fill in the Blanks
Solution
The labelled break is used to terminate the outer loop from the block of inner loop.
Explanation:
In Java, an outer loop can be ended from within an inner loop with a labelled break. You can indicate which loop should be broken when the break statement is reached by using a label.
shaalaa.com
Is there an error in this question or solution?