Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Why only +String concatation for Operator Overloading ?

807588Apr 27 2009 — edited Apr 27 2009
Java does not support operator overloading other than the + operator for addition of two Strings or a number and a String.Why only the + operator and Strings, even when we have a concat() for addition of Strings ?

Wondering if anyone could provide me some link as to why this only this (+) operator was chosen.

Thank you for your consideration.

Edited by: amtidumpti on Apr 27, 2009 6:40 AM

Edited by: amtidumpti on Apr 27, 2009 6:40 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 25 2009
Added on Apr 27 2009
36 comments
726 views