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 42 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
Thanks
wrote...

Yesterday
this is exactly what I needed
wrote...

2 hours ago
Brilliant
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1241 People Browsing
Related Images
  
 281
  
 372
  
 1104
Your Opinion
Which industry do you think artificial intelligence (AI) will impact the most?
Votes: 352