answersLogoWhite

0


Best Answer

Operator overloading is not possible in Java.

User Avatar

Wiki User

โˆ™ 2009-07-24 05:56:01
This answer is:
User Avatar
Study guides

Mixture

1 card

Class

โžก๏ธ
See all cards
4.36
โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…
22 Reviews

Add your answer:

Earn +20 pts
Q: Operator overloading is possible in java or not?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why operator overloading not possible in Java?

Java does not support operator overloading because Sun deliberately omitted it, citing simplicity as the reason for omission.


What is an operator overloading in java?

Operator overloading refers to redefining what the mathematical operators (+-*/) do when applied to different objects. Java does not support operator overloading.


What are factors to be considered while overloading the operators?

Java does not support operator Overloading.


What is overloaded operator?

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.


How do you overload operator?

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.


Why operators not overloaded?

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.


Why operator overloading is not there in java?

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


Is it possible to do operator overloading in c?

No. Operator and/or function overloading is only a C++ thing.


What are the restriction that are applied to operator overloading?

Java does not support user defined operator overloading.The operator '+' is overloaded in Java and can be used for adding both numbers and Strings.


Operator overloading program in c?

Not possible.


Why opreator overloading is not included in Java Programming Language?

Operator overloading was a feature of C++ that the Java language designers thought was too complicated and not useful enough to include.


What is assignment operator overloading?

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

People also asked