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  
mononofu_id mononofu_id
wrote...
Posts: 92
Rep: 3 0
5 years ago
What will be displayed after the following statements are executed?
int ans = 10;
int x = 65;
int y = 55;
if (x >= y)
{
     int ans = x + y;
}
System.out.println(ans);
a.10c.100
b.120d.The code contains an error and will not compile.
Textbook 
Starting Out with Java: From Control Structures through Objects

Starting Out with Java: From Control Structures through Objects


Edition: 7th
Author:
Read 40 times
1 Reply
Replies
Answer verified by a subject expert
cmt0730cmt0730
wrote...
Posts: 61
5 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here

Related Topics

mononofu_id Author
wrote...

5 years ago
Correct Slight Smile TY
wrote...

Yesterday
this is exactly what I needed
wrote...

2 hours ago
Thanks
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1359 People Browsing
Related Images
  
 291
  
 281
  
 396
Your Opinion
Which country would you like to visit for its food?
Votes: 204

Previous poll results: Where do you get your textbooks?