When break is used inside two nested for loops, does control come out of the inner for loop or the outer for loop?

Question:When break is used inside two nested for loops, does control come out of the inner for loop or the outer for loop?

1.It breaks from only the outer loop.

2.It breaks from all loops.

3.It breaks from only the inner loop.

4.It breaks from the outer loop after the second iteration.


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!