Why does Java not support operator overloading?

Why does Java not support operator overloading?

Hi,

Why does Java not support operator overloading?

thanks,

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.

Ads









Related Tutorials/Questions & Answers:
Why does Java not support operator overloading?
Does Java support multiple Inheritance?
Advertisements
Does Java support multiple Inheritance?
Does Java support multiple Inheritance?
Does Java support multiple inheritance?
Why does Java provide both abstract class as well as interface
What is a pointer and does Java support pointers?
why we use ^ operator in sql, and what is the meaning of that operator?
Does hibernate support polymorphism?
In netbean jdk, it does not import the file,"java.nio.file.Paths". why?.
Why does this code prints fAfA instead of fBfA ?
Object does not support proprty or method
post method does not support this url
Java Questionmark operator
Why is super.super.method(); not allowed in Java?
Does finally always execute in Java?
Java is an opensource program or not? why???
Does finally always execute in Java?
Does finally always execute in Java?
Does finally always execute in Java?
Java "&" operator
What does core Java include?
Assignment operator in java
Why Generics was introduced in Java?
Java 'or' operator
How does it take to learn Java
How does it take to learn Java
How does it take to learn Java
Why bufferedreader is used in java?
How does the Java for each loop work?
Java Bitwise XOR "^" Operator

Ads