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
What is operator overloading in Java with example?
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