i am going to explain operator overloading on the basis of following context
1-language-defined operator overloading
2-user-defined operator overloading
c++ support user defined operator overloading only and java support language -defined operator overloading
Java have language -defined operator over loading properties only for + operator .
+ operator is used to add two primitive type variable and also used to concatenation string variable .in String concatenation it first check both operand ,if any of these String then it perform concatenation .
Example :
int i =10,j=10 k;
k=i+;j;
System.out.println(k); //Out Put :20
String a="Hello";
String b="India";
String c=a+b;
System.out.println(c); //Out Put:HelloIndia