Question: Given the variable declarations int x = 4; int y = 3; int z = 4; what are the results of the following relational expressions?

Given the variable declarations

int x = 4;

int y = –3;

int z = 4;

what are the results of the following relational expressions?

a. x == 4

b. x == y

c. x == z

d. y == z

e. x + y > 0

f. x – z != 0

g. y * y <= z

h. y / y == 1

i. x * (y + 2) > y - (y + z) * 2

Step by Step Solution

3.42 Rating (158 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Results of relationa... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Building Java Programs A Back to Basics Approach Questions!