Java   View all facts   Glossary   Help
syntactic unit > symbol > operator > postfix operator
Next operatorprefix operator    Upoperator    Previous operatornew operator   

postfix operator comparison table
Subject have example have purpose
++
example expressionequivalent longer expression
a++;
b=a++;
++a;
b=++a;
a=a+1;
b=a; a=a+1;
a=a+1;
a=a+1; b=a;
to increment its operand by one
--
example expressionequivalent longer expression
a--;
b=a--;
--a;
b=--a;
a=a-1;
b=a; a=a-1;
a=a-1;
a=a-1; b=a;
to decrement its operand by one

Next operatorprefix operator    Upoperator    Previous operatornew operator