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
Cosmo
Sign Up Now
or Subscribe for future quizzes