== == === === === === === === 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.....
=== === === ===
Chat with our AI personalities
You cannot explicitly overload an operator in Java but by default the + symbol is overloaded. You can use it to add numeric values as well as concatenate strings.
Java supports method overloading. Several methods in a class (or extension), can use the same method name with different parameters and same result type.
Java does not support operator overloading because Sun deliberately omitted it, citing simplicity as the reason for omission.
Operator overloading was a feature of C++ that the Java language designers thought was too complicated and not useful enough to include.
Because it would create unnecessary complications and people might end up using operators to do things that they arent supposed to do.
Java does not support opperator overloading, so the answer to your question is: none.
I think you mean operation overlord??? It is the American, Canadian and British offensive on Europe in World War 2. They landed in Normandy on 6th June 1944 (Commonly called D-Day, Day of Days or Deliverance Day) and progressed throughout France liberating Paris on the 25th August. This allowed the allies a foothold in Europe.
JAVA is an Object Based Programming Language. it doesn't provide multiple inheritance and operator overloading. while Object Oriented Lanuages provides both.
Function overloading is multiple definition with different signatures(the parameters should be different) for the same function. The parameter list have to be different in each definition. The compiler will not accept if the return type alone is changed. Operator overloading is defining a function for a particular operator. The operator loading function can not be overloaded through function overloading.
There is no sizeOf() operator in Java.