Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners Why does Java not support operator overloading?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Java Coder
Why does Java not support operator overloading?
1 Answer(s)      a year and 7 months ago
Posted in : Java Beginners


Hi,

Why does Java not support operator overloading?

thanks,


Advertisement
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.



Related Tutorials/Questions & Answers:
Advertisements
Advertisements
 

 

 

DMCA.com