Top Posters
Since Sunday
5
o
5
4
m
4
b
4
x
4
a
4
l
4
t
4
S
4
m
3
s
3
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 38 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
I appreciate what you did here, answered it right Smiling Face with Open Mouth
wrote...

Yesterday
Brilliant
wrote...

2 hours ago
This site is awesome
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  900 People Browsing
 112 Signed Up Today
Related Images
  
 615
  
 368
  
 245
Your Opinion
Who's your favorite biologist?
Votes: 585