Examveda

What will s2 contain after following lines of Java code?
 StringBuffer s1 = "one";
StringBuffer s2 = s1.append("two")

A. one

B. two

C. onetwo

D. twoone

Answer: Option C


This Question Belongs to Java Program >> Strings

Join The Discussion

Related Questions on Strings