. Suppose that x, y, z, and w are int variables and x = 3, y = 4, z = 7, and w = 1.
What is the output of the following statements?
a. System.out.println("x == y: " + (x == y));
b. System.out.println("x != z: " + (x != z));
c. System.out.println("y == z – 3: " + (y == z – 3));
d. System.out.println("!(z > w): " + !(z > w));
e. System.out.println("x + y < z: " + (x + y < z));
Comments
Leave a comment