Concatenating two strings

The + operator can be used for concatenation of strings.
concat(String str) is a method of String class that concatenate two strings and return a String.