Operator Precedence in Java
Operator Precedence in Java
Operator Precedence in Java
+ - addition, substraction
4 left
+ string concatenation
== equal to
7 left
!= not equal to
^ bitwise XOR
9 left
^ boolean (logical) XOR
| bitwise OR
10 left
| boolean (logical) OR
= assignment
*= /= += -= %=
&= ^= |=
Further reading
Java Language Specification SE :
Evaluation Order (Expressions )
uni-bonn.de/…/javaoperators.php?me… 2/2