Java   View all facts   Glossary   Help
syntactic unit > symbol > operator > arithmetic operator > --
Next arithmetic operator/    Uparithmetic operator, postfix operator, prefix operator, unary operator    Previous arithmetic operator-   

-- comparison table
Subject use in have example has definition have purpose is a kind of is an instance of
arithmetic operator   to perform basic arithmetic operationsoperator  
postfix operator   to evaluate the value of the operand and then to perform the operationoperator  
prefix operator   to perform the operation and then to evaluate the value of the operandoperator  
unary operator  An operator that has 1 argumentto perform a simple function of 1 to 3 argumentsoperator 
--prefix or postfix form
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 unary operator

Next arithmetic operator/    Uparithmetic operator, postfix operator, prefix operator, unary operator    Previous arithmetic operator-