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+   

++
subjectfact 
++can be used in prefix or postfix form    source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:35:53.0
has example
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;
  
source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:35:53.0
has purpose to increment its operand by oneadded by: JK, source: Sun Java Tutorial, 2001-10-19 11:35:53.0
is a subtopic of Operators2001-10-19 11:35:53.0
is an instance of arithmetic operatoradded by: JK, source: Sun Java Tutorial, 2001-10-19 11:35:53.0
is an instance of postfix operatoradded by: JK, 2001-10-19 11:35:53.0
is an instance of prefix operatoradded by: JK, 2001-10-19 11:35:53.0
is an instance of unary operatoradded by: JK, source: Sun Java Tutorial, 2001-10-19 11:35:53.0
unary operator 2001-10-19 11:38:10.0
2001-10-19 11:38:10.0
operatorevaluates to its result2001-10-19 11:37:36.0
has precedence2001-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

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