πŸ“Š JAVA
Q. What will s2 contain after following lines of Java code?
Code:
String s1 = "one";
String s2 = s1.concat("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

πŸ‘οΈ
140
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Bhagwan Das
Publisher
πŸ“ˆ
95%
Success Rate