KnowledgeBoat Logo
|

Computer Applications

What is significance of 'break outer' and 'continue outer' in a nested loop?

Java Nested for Loops

46 Likes

Answer

'break outer' will terminate the loop that is labelled as outer in a nested loop and transfer the program control to the statement just after the loop labelled as outer.
'continue outer' will skip the remaining statements of the nested loop and start the next iteration of the loop that is labelled as outer.

Answered By

28 Likes


Related Questions