Which of these lines contains a valid code:

public class Test {
    public static void main(String[] sr) {
        int x, y, z;
        x = 1;
        y = 2;
        z = 3;
        System.out.println(z >= y >= x); //1
        System.out.println(z >= y && y >= x); //2
    }
}
Explanation
Get an explanation when it's available:

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback