πŸ“Š JAVA
Q. What will s2 contain after following lines of Java code?
Code:
StringBuffer s1 = "one";
StringBuffer s2 = s1.append("two")
  • (A) one
  • (B) two
  • (C) onetwo
  • (D) twoone
πŸ’¬ Discuss
βœ… Correct Answer: (C) onetwo

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
92
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Pooja
Publisher
πŸ“ˆ
86%
Success Rate