What is the resut of the following code compilation and execution?

public class Main {
    public static void main(String[] str) {
        outer: 
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                System.out.println("Hello");
                continue outer;
            } 
            System.out.println("outer"); 
        }
        System.out.println("Good-Bye");
    }
}

Follow CodeGalaxy

Mobile Beta

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