+ (sum) operator
The left-associative, binary infix
+ operator is used to sum two operands.
Integer three = 1 + 2; String concatenated = "foo" + "bar";
+ operator is defined as follows:
See the language specification for more details.
The result type of the
+ operator is the same as the type of its right hand operand.
+ for built-in types
+ performs concatenation.