Examveda
Examveda

What will s2 contain after following lines of Java code?
 String s1 = "one";
String s2 = s1.concat("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