What is the result of the following code compilation?

public class MyFirst {
    public static void main(String[] args){  
        int i, j;
        i = 10;
        j = 20;
        while(++i < --j);
        System.out.println(i);
    }
}

Operators? There are many things that can be called that, I think it'd be better to change the explanation's "operator" to "cycle's body"

2023 Feb 17, 10:46:42 AM

Follow CodeGalaxy

Mobile Beta

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