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

How Can We Find the Memory Usage of JVM From Java Code ?

What are the Main Benefits of Collections Framework in Java ?

How Can You Make an Object Eligible for Garbage Collection in Jav ...

What are the Differences Between a HashSet and a HashMap in Java ...

What are the Java Collection Classes That Implement List Interfac ...