What happens at compilation and ruing of this piece of code?

int i = 0, j = 5;
tp: for (;;) {
    i++;
    for (;;) {
        if (i > --j) {
            break tp;
        }
    }
    System.out.println("i =" + i + ", j = " + j);
}

Follow CodeGalaxy

Mobile Beta

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