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.









Related Tutorials/Questions & Answers:
Why does Java not support operator overloading?
why java does not support multiple inheritance - Java Beginners
Advertisements
Does Java support multiple Inheritance?
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 does the delete operator do?
What does the delete operator do?
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 ?
Java operator
Java operator
Java operator
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?
why java is securable ?
How does it take to learn Java
How does it take to learn Java
How does it take to learn Java
Java 'or' operator
Why bufferedreader is used in java?
Package does not exist.. - Java Beginners
How does the Java for each loop work?
Java Bitwise XOR "^" Operator
Java Bitwise NOT "~" Operator
How does Java handle integer overflows and underflows?
Why on should learn Spring Java
Java Bitwise AND " &" Operator
Java Bitwise OR " |" Operator
Java XOR Operator
Java bitwise OR "|" operator
Why Java is a platform independent language?
How to handle traversing in CustomItem of J2ME in a mobile phone which does not support traversing?
why we use constructors instead of methods in java?
why java program not run with msword editor

Ads