6.6 Java String Concat A
6.6 Java String Concat A
The Java String class concat() method combines specified string at the end of this string.
It returns a combined string. It is like appending another string.
Signature
The signature of the string concat() method is given below:
Parameter
anotherString : another string i.e., to be combined at the end of this string.
Returns
Output:
java string
java string is immutable so assign it explicitly