Question: Discuss the difference between str = str + word; //string concatenation and tempStringBuffer.append(word); where str is a String object and tempStringBuffer is a StringBuffer object.
Discuss the difference between
str = str + word; //string concatenation
and
tempStringBuffer.append(word);
where str is a String object and tempStringBuffer is a StringBuffer object.
#######################################################################

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
