Home > Net >  Where's the Java operator " " defined? [duplicate]
Where's the Java operator " " defined? [duplicate]

Time:09-21

I want to make a Complex class with overloaded operators in Java. I have no idea if it's possible but I need to know where's the concat operator in String come from to understand

CodePudding user response:

Java doesn't support operator overloading. String is the only built-in example, where " " can be used for something else besides arithmetic addition.

  • Related