Does java supports operator overloading?my problem is we r using + operator for concatinating the strings and for addition then why it is not?

Showing Answers 1 - 1 of 1 Answers

luckshme

  • Jul 31st, 2006
 

There is absolutely no way so far for operator overloading in Java. In Java, String is considered like a primitive for which Java provides a default overloaded functionality for + operator. For that matter, even Java does not provide an overloaded - operator for reducing strings ;)

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions