1
visibility

What will s2 contain after following lines of code?

String s1 = “one”;

String s2 = s1.concat(“two”);

  • A

    one

  • B

    two

  • C

    onetwo

  • D

    twoone

Two strings can be concatenated by using concat() method.