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.

sstan
  • 35,425
  • 6
  • 48
  • 66
Andrew Tobilko
  • 48,120
  • 14
  • 91
  • 142

1 Answers1

3

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

M A
  • 71,713
  • 13
  • 134
  • 174