Java Coder
Why does Java not support operator overloading?
1 Answer(s)      2 years ago
Posted in : Java Beginners


Why does Java not support operator overloading?


View Answers

April 15, 2013 at 6:55 PM

Hi friend,

When Java had been created it took and left most of the features of C++. Java was created to provide a simplicity in programming. Operator overloading is one of the programming concept in C++ that the Java has left. Coding for operator overloading is very difficult for programmer and due to making the Java simple this concept had been removed. An exceptional case of custom operator overloading in Java is use of '+' operator for String concatenation of constants at compile time or execution time using StringBuilder/StringBuffer.