Java   View all facts   Glossary   Help
syntactic unit > symbol > operator > assignment operator > augmented assignment operator
Next assignment operatorcaret=    Upassignment operator    Previous assignment operator>>>=   

augmented assignment operator comparison table
Subject have example have equivalent
*=
example expressionequivalent longer expression
a*=b;a=a*b;
op1 *= op2
is equivalent to
op1 = op1 * op2
+=
example expressionequivalent longer expression
a+=b;a=a+b;
op1 += op2 
is equivalent to
op1 = op1 + op2
-=
example expressionequivalent longer expression
a-=b;a=a-b;
op1 -= op2
is equivalent to
op1 = op1 - op2
/=
example expressionequivalent longer expression
a/=b;a=/b;
op1 /= op2
is equivalent to
op1 = op1 / op2

Next assignment operatorcaret=    Upassignment operator    Previous assignment operator>>>=