. 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));
Answers:
a. x == y: false
b. x != z: true
c. y == z – 3: true
d. !(z > w): false
e. x + y < z: false
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
JavaJSPJSF