Menu
Question Index
...

What will be the output of the following program?

public class Blue {
    public static void main(String s[]) {
        int x = 20;
        int y = 25;
        if (++x < (y = y -= 4) || (x = x += 4) > y) {
            System.out.println(x + " " + y);
        }
    }
}


25 20
(EMPTY)
Some other output
Compilation Error or Runtime Error

Doubts

Problems

Topic: if Condition In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App