Solved

What Would Be the Results of Executing the Following Code

Question 44

Multiple Choice

What would be the results of executing the following code?
StringBuilder str = new StringBuilder(12) ;
Str) append("The cow") ;
Str) append(" jumped over the ") ;
Str) append("moon.") ;


A) The program would crash.
B) str would reference "The cow jump".
C) str would reference "The cow jumped over the ".
D) str would reference "The cow jumped over the moon."

Correct Answer:

verifed

Verified

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

Related Questions