Top Posters
Since Sunday
5
a
5
k
5
c
5
B
5
l
5
C
4
s
4
a
4
t
4
i
4
r
4
New Topic  
zar zar
wrote...
Posts: 458
Rep: 1 0
3 years ago
What is the output of the following code? (Please indent the statement correctly first.)

int x = 9;
int y = 8;
int z = 7;

if (x > 9)
if (y > 8)
System.out.println("x > 9 and y > 8");
else if (z >= 7)
System.out.println("x <= 9 and z >= 7");
else
System.out.println("x <= 9 and z < 7");


▸ x <= 9 and z >= 7;

▸ x > 9 and y > 8;

▸ x <= 9 and z < 7;

▸ none
Textbook 
Introduction to Java Programming, Comprehensive Version

Introduction to Java Programming, Comprehensive Version


Edition: 10th
Author:
Read 81 times
1 Reply
Replies
Answer verified by a subject expert
christinaalexchristinaalex
wrote...
Posts: 393
3 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here

Related Topics

zar Author
wrote...

3 years ago
Good timing, thanks!
wrote...

Yesterday
Brilliant
wrote...

2 hours ago
Thank you, thank you, thank you!
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1327 People Browsing
Related Images
  
 339
  
 126
  
 244
Your Opinion
Which 'study break' activity do you find most distracting?
Votes: 741