Solved

What Would Be the Results of Executing the Following Code

Question 47

Multiple Choice

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) The program would crash.
B) str would reference "Little Jack Horner ".
C) str would reference "Little Jac Horner sat on the ".
D) str would reference "Little Jack Horner sat on the corner".

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents