Top Posters
Since Sunday
w
5
a
3
j
2
a
2
t
2
u
2
r
2
j
2
j
2
l
2
d
2
y
2
New Topic  
Oughto Oughto
wrote...
Posts: 742
Rep: 1 0
7 years ago
What would be the results of executing the following code?

StringBuilder str = new StringBuilder("Little Jack Horner ");
str.append("sat on the ");
str.append("corner");

A) str would equal "Little Jac Horner sat on the"
B) str would equal "Little Jack Horner sat on the corner"
C) The program would crash.
D) str would equal "Little Jack Horner"
Textbook 
Starting Out with Java: Early Objects

Starting Out with Java: Early Objects


Edition: 4th
Author:
Read 326 times
4 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

Oughto Author
wrote...
7 years ago
I literally took this as a gen ed course, I was lost thought it would be easy

thx for making it easier on me
wrote...
7 years ago
Good luck tackling the rest
wrote...
4 years ago
Thanks
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1483 People Browsing
 101 Signed Up Today
Related Images
  
 185
  
 583
  
 93
Your Opinion
Who will win the 2024 president election?
Votes: 119
Closes: November 4