The break statement in java breaks the execution flow out of the loop. Continue, on the other hand, skips the current iteration. But both will have an impact on the loop in which it is used. So, how do we come out of the outer loop in case of a nested loop?

This video provides the solution to this situation with Labelled-Break and Labelled-Continue.

Tagged Break and Tagged Continue
Sep 23 2019

Sivaraman Dhamodaran

This video explains the usage of Labelled (Tagged) Break and Tagged Continue in Java.