Solved

What Would Be the Results of Executing the Following Code

Question 34

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