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 41 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
Just got PERFECT on my quiz
wrote...

Yesterday
Good timing, thanks!
wrote...

2 hours ago
This site is awesome
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1318 People Browsing
Related Images
  
 4430
  
 396
  
 263
Your Opinion
Who will win the 2024 president election?
Votes: 3
Closes: November 4