A method is present in String class for concatenation of 2 strings:
New string will be returned, that is, string1 and string2 will be added in the end. Concat() method could also be used along with string literals:
Commonly, strings are concatenated along with +operator:
"My name is ".concat("Zara");
"Hello," + " world" + "!"