August 2016
Intermediate to advanced
694 pages
19h 29m
English
In the following table, the operators are grouped by precedence level (highest to lowest), and a horizontal line separates each precedence level from the next-lower level.
| Operator | Assoc.* | Operand Type(s) | Operation Performed |
|---|---|---|---|
. |
LR | object, member | object member access |
[] |
LR | array, int | array element access |
( args ) |
LR | method, arglist | method invocation |
++, -- |
LR | variable | post-increment, decrement |
++, -- |
RL | variable | pre-increment, decrement |
+, - |
RL | number | unary plus, unary minus |
~ |
RL | integer | bitwise complement |
! |
RL | boolean | boolean NOT |
new |
RL | class, arglist | object creation |
( type ) |
RL | type, any | cast (type conversion) |
*, /, % |
LR | number, number | multiplication, ... |