KnowledgeBoat Logo

Computer Applications

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

Java Nested for Loops

39 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

23 Likes


Related Questions