Click here to Skip to main content
15,902,635 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,if know reply,
why operator overloading doesnot suport in java
Posted

There were two major reasons why operator overloading wasn't allowed in Java: "cleanliness" and compiler complexity.

The main reason was the first, a personal preference choice made by Java's creator, James Gosling.

Refer more details:
Why Java does not support Operator overloading[^]
Why java not support operator overloading?[^]

Similar answer here[^]
 
Share this answer
 
Why not use Google first?
Here some ideas why it is not supported:
http://javarevisited.blogspot.de/2011/08/why-java-does-not-support-operator.html[^]
And here some information why it is not really needed:
http://java.dzone.com/articles/why-java-doesnt-need-operator[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900