According to JLS 14.7
The label area of a labeled statement is the one immediately containing the expression.
So, in your case, the scope of the first is the sysout statement following the table. To be more precise, you can define the scope using curly braces, and within these curly brackets it is valid for going to the label. So below is acceptable
first: { System.out.println("First statement"); for (int i = 0; i < 2; i++) { System.out.println("Second statement"); break first; } }
OR
first: { System.out.println("First statement"); break first; } second: for(int i=0;i<2;i++){ System.out.println("Second statement"); break second; }
source share