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
Java Bitwise NOT "~" Operator
How does Java handle integer overflows and underflows?
Java Bitwise AND " &" Operator
Java Bitwise OR " |" Operator
Java XOR Operator
Why on should learn Spring Java
Java bitwise OR "|" operator
Why Java is a platform independent language?
JAVA leftshift operator add 1 instead of 0
Java Left Shift "<<" Operator
Java Right Shift ">>" Operator
why we use constructors instead of methods in java?
why java program not run with msword editor
Why doesn't Java allow overriding of static methods?
Does the object type known during compilation in Java?.
why java file save as its class name
Does java supports queries with references/Table alias?
EJB, Enterprise java bean- Why EJB (Enterprise Java Beans)?
Unsigned right shift ">>>" Operator

Ads