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.

Sivaraman Dhamodaran is a Software Engineer. He has over 15 years of experience in IT Industries. He had come across Vc++ & MFC Frame Work, Dot.Net technologies, Oracle and SQL Server. He mostly worked on Desktop database applications, GSM Compatible Modems, Biometric devices, and Graphics technologies.