Page 1 of 1

What will s2 contain after following lines of Java code?

Posted: Wed Jul 13, 2022 7:46 pm
by answerhappygod
String s1 = "one";
String s2 = s1.concat("two")
a) one
b) two
c) onetwo
d) twoone