Java   View all facts   Glossary   Help
syntactic unit > symbol > operator > assignment operator > augmented assignment operator > -=
Next augmented assignment operator/=    Upaugmented assignment operator    Previous augmented assignment operator+=   

-=
subjectfact 
-=has example
example expressionequivalent longer expression
a-=b;a=a-b;
  
source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:35:51.0
has equivalent
op1 -= op2
is equivalent to
op1 = op1 - op2
added by: JK, source: Sun Java Tutorial, 2001-10-19 11:35:51.0
is a subtopic of Operators2001-10-19 11:35:52.0
is an instance of augmented assignment operatoradded by: JK, source: Sun Java Tutorial, 2001-10-19 11:35:52.0
augmented assignment operatorhas syntax
variable name operator= expression
2001-10-19 11:36:09.0
may cause an expression written using it to execute faster than the corresponding expression written without it2001-10-19 11:36:09.0
reassigns a variable to a value obtained through a combination of the variable's current value with an expression's value2001-10-19 11:36:09.0
operatorevaluates to its result2001-10-19 11:37:36.0
has precedence2001-10-19 11:37:36.0
has purpose to perform a simple function of 1 to 3 arguments2001-10-19 11:37:36.0
is part of an expression2001-10-19 11:37:36.0
is evaluated before another operator with lower precedence2001-10-19 11:37:36.0
returns a value called its result2001-10-19 11:37:37.0
syntactic unithas syntax rule
bold = mandatory
italic = non-terminal
normal font = optional
2001-10-19 11:38:04.0