
5.11 The switch Statement 253
TABLE 5.12 Operator Precedence
Operator Order of Same-
Hierarchy Statement Evaluation Operation
( ) left to right parentheses for explicit grouping
++, – – right to left shortcut postincrement
++, – –, ! right to left shortcut preincrement,logical unary NOT
*, /, % left to right multiplication,division,modulus
+, – left to right addition or String concatenation,subtraction
<, <=, >, >= left to right relational operators:less than,less than or equal to,greater
than,greater than or equal to
==, != left to right equality operators:equal to and not equal to
&& left to right logical AND
|| left to right logical OR
?: left to right ...