Unlike C++, Java does not support user defined operator overloading. The overloading is done internally in java. We can take + (plus) for example: int a = 2 + 4; string = “hello” + “world”; Here, plus adds two integer numbers and concatenates two strings.8 Kas 2011
Read moreWhat is operator overloading with example?
This means C++ has the ability to provide the operators with a special meaning for a data type , this ability is known as operator overloading. For example, we can overload an operator ‘+’ in a class like String so that we can concatenate two strings by just using +.
Read more