logo

Crowdly

What is the output of the following code snippet?        int i = 0; outer: while...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What is the output of the following code snippet?

       int i = 0;

outer:

while (i < 5) {

    inner:

    for (int j = 0; j < 3; j++) {

        if (i == 3)

            break outer;

        if (j == 2)

            continue inner;

        System.out.print(i + j + " ");

    }

    i++;

}

More questions like this

Want instant access to all verified answers on my.uopeople.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!