Operator overloading is not possible in Java.
Java does not support operator overloading because Sun deliberately omitted it, citing simplicity as the reason for omission.
Operator overloading refers to redefining what the mathematical operators (+-*/) do when applied to different objects. Java does not support operator overloading.
Java does not support operator Overloading.
Java does not support operator overloading. Operator overloading is the scenario where you overload a particular operator to do something that it is not designed to do. Ex: if you make the operator "*" do addition or the operator "-" do multiplication, imagine the chaos that would ensue in your program. So the java designers blocked this feature of operator overloading.
Java does not support operator overloading. Operator overloading is the scenario where you overload a particular operator to do something that it is not designed to do. Ex: if you make the operator "*" do addition or the operator "-" do multiplication, imagine the chaos that would ensue in your program. So the java designers blocked this feature of operator overloading.
Java does not support operator overloading. Operator overloading is the scenario where you overload a particular operator to do something that it is not designed to do. Ex: if you make the operator "*" do addition or the operator "-" do multiplication, imagine the chaos that would ensue in your program. So the java designers blocked this feature of operator overloading.
== == === === === === === === Some Body told me that operator overloading is not there because it violates the transparency of java.since there is no hiding of information in java it does support op overloading === === === === === === Pranab Kumar Rana Software Engineer..... === === === ===
No. Operator and/or function overloading is only a C++ thing.
Java does not support user defined operator overloading.The operator '+' is overloaded in Java and can be used for adding both numbers and Strings.
Not possible.
Operator overloading was a feature of C++ that the Java language designers thought was too complicated and not useful enough to include.
There is no concept of operator overloading in java, at least it is not available to the developers. There are still instances of operator overloading as in the case of "+" operator. It is used both to perform arithmetic sum as well as concatenation of two strings. But one cannot impart additional functions to an existing operator as in the case of C++.