Labelled break statement...where next
<p>I'm just doing the Sierra-Bates SCJP study guide and am wondering about the following question:</p>

<pre><code>public class Wind {

  public static void main(String[] args) {

    foreach:
      for(int j=0; j&lt;5; j++) {
        for(int k=0; k&lt; 3; k++) {

          System.out.print(" " + j);
          if(j==3 &amp;&amp; k==1) break foreach;      //1
          if(j==0 || j==2) break;

        }
      }

  }
}
</code></pre>

<p>When the value of k is equal to 1 and break foreach is executed (at line 1), where exactly does iteration go after this, to my mind does this now exit the whole loop. Where is the next point of iteration ? How is there any further iterations if the outside loop is exited ?
The answer given in the study book for this is 0111233. The way I see it, only 01 gets printed before the entire loop is exited. No ?</p>
