Top Posters
Since Sunday
s
5
g
5
K
5
o
5
g
5
o
4
k
4
s
4
I
4
k
4
j
4
o
4
New Topic  
Eels Eels
wrote...
Posts: 716
Rep: 0 0
7 years ago
What will be the displayed when the following code is executed?

final int x = 22, y = 4;
y += x;
System.out.println("x = " + x + ", y = " + y);

A) x = 22, y = 26
B) x = 22, y = 4
C) x = 22, y = 88
D) Nothing, this is an error.
Textbook 
Starting Out with Java: Early Objects

Starting Out with Java: Early Objects


Edition: 4th
Author:
Read 167 times
3 Replies
Replies
Answer verified by a subject expert
ToothyToothy
wrote...
Top Poster
Posts: 744
Rep: 4 0
7 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here
1

Related Topics

Eels Author
wrote...
7 years ago
This brought my confidence back up, thanks
wrote...
7 years ago
Good luck tackling the rest
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  772 People Browsing
Related Images
  
 297
  
 5187
  
 9342
Your Opinion
Which is the best fuel for late night cramming?
Votes: 146

Previous poll results: Who's your favorite biologist?