0

I often hear people say that the plus (+) operator for String objects is an overloaded operator. Why? Which operators does it overload?

I know what this operator does and how it works. I also know that Java doesn't support user-defined overloaded operators.

1
  • It merely resembles an overloaded operator such as one would find in C++. Commented Jun 29, 2015 at 20:37

1 Answer 1

3

It is not overloaded. It's a concatenation operator for strings defined at the language level. See String Concatenation Operator +.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.