+ 4
Where is error in Java program (comment 1 or 2 or 3)?
// Where is error in Java program (comment 1 or 2 or 3)? public class Program { public static void main(String[] args) { label: { // 1 break label; // 2 continue label; // 3 }}}
2 Answers
+ 13
Error in 3, because continue must be inside a loop
+ 2
break label will exit loop, continue is unreachable code