Q. What will s2 contain after following lines of Java code?
Code:
StringBuffer s1 = "one";
StringBuffer s2 = s1.append("two")
β
Correct Answer: (C)
onetwo
StringBuffer s1 = "one";
StringBuffer s2 = s1.append("two")
You must be Logged in to update hint/solution