What will be the output of this code?

Last Updated :
Discuss
Comments

What will be the output of this code?

Java
for (int i = 0; i < 5; i++) {
    if (i == 3)
        continue;
    System.out.print(i + " ");
}


0 1 2 3 4


0 1 2 4

0 1 2

Compilation Error

Share your thoughts in the comments