Disadvantages of an operator overloading:
Read moreCan we use operator overloading in Java?
Java doesn’t supports operator overloading because it’s just a choice made by its creators who wanted to keep the language more simple. Every operator has a good meaning with its arithmetic operation it performs. Operator overloading allows you to do something extra than what for it is expected for.18 Haz 2018
Read moreShould you use operator overloading?
Operator overloading gives you an opportunity to fully integrate your data type into the language, so that it can behave as if it were a built-in data type . This can make the code that uses your class more concise and (hopefully) easier to read.
Read moreWhich operator can not be overloaded in Java?
Unlike C++, Java doesn’t support operator overloading. Java doesn’t provide freedom to programmers, to overload the standard arithmetic operators e.g. +, -, * and / etc.5 Ağu 2021
Read more