What will be the result of the program?

public class MyTest {
    public static void main(String[] args) {        
        label1: for (int i = 0; i < 3; i++) {
            if (i == 1)
                continue label1; 
            label2:
                System.out.print("TEST ");
            label3:;
        }
    }
}

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Java quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes