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);
    }
}

Follow CodeGalaxy

Mobile Beta

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