Computer Science, asked by asherantony07, 3 months ago

In a Java program, if x, y, z are all integers, while p, q and r are boolean;  x = 2, y = 3, and z = 0, what will be the value of z, p, q, and r?
z = (x + y);
p = (x < y);
q = (x == y);
r = (x != y);​

Answers

Answered by swarajhegde14
1

Answer:

As z p q and r are booleans they evaluate only to true or false.

hence the answers would be:

true

true

false

false

Similar questions