Why Java Does Not Support Operator Overloading ?

Java supports Method overloading but does not support operator overloading. It would make the design more complex by adding operator loading. Also it will make more complex compiler.

One more reason is that, it will reduce the performance of JVM by operator overloading, since JCM has to do extra work to find the real meaning of overloaded operators at run time.



You May Interest

What is the Different Type of Tag Library Groups in JSTL ?

What are the Situations in Which You Choose HashSet or TreeSet in ...

What are the Different Types of Events Provided by Spring Framewo ...

What is the Reason to Organize Classes and Interfaces in a Packag ...

What is the Difference Between an Iterator and ListIterator in Ja ...