Is the + operator overloaded?
Java does not have operator overloading, but string concatenation is a special case. When the + operator is applied to a String, the two values are appended as a new String. The Java interpreter converts primitive values, such as int and long, to their string values and then concatenates the strings.
Java does not have operator overloading, but string concatenation is a special case. When the + operator is applied to a String, the two values are appended as a new String. If you use the + operator with a String and a primitive value, such as an int or long, the Java interpreter implicitly converts the primitive value a string representation and concatenates them. Actions: Follow-up or correct this answer. Submit a new question.