answersLogoWhite

0

== == === === === === === === Some Body told me that operator overloading is not there because it violates the transparency of java.since there is no hiding of information in java it does support op overloading

=== === === === === === Pranab Kumar Rana

Software Engineer.....

=== === === ===

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
JudyJudy
Simplicity is my specialty.
Chat with Judy
LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
More answers

You cannot explicitly overload an operator in Java but by default the + symbol is overloaded. You can use it to add numeric values as well as concatenate strings.

User Avatar

Wiki User

16y ago
User Avatar

Java supports method overloading. Several methods in a class (or extension), can use the same method name with different parameters and same result type.

User Avatar

Wiki User

17y ago
User Avatar

Java does not support operator overloading because Sun deliberately omitted it, citing simplicity as the reason for omission.

User Avatar

Wiki User

16y ago
User Avatar

Operator overloading was a feature of C++ that the Java language designers thought was too complicated and not useful enough to include.

User Avatar

Wiki User

14y ago
User Avatar

Because it would create unnecessary complications and people might end up using operators to do things that they arent supposed to do.

User Avatar

Wiki User

14y ago
User Avatar

Add your answer:

Earn +20 pts
Q: Why operator overloading is not there in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp