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
  • 33,933
  • 6
  • 42
  • 65
Andrew Tobilko
  • 46,063
  • 13
  • 87
  • 137

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
  • 69,673
  • 13
  • 131
  • 165