The Java operator precedence hierarchy is as follows.  This is only a subset of available Java operators.
    Level Operators Operation Associativity Type
    1 ( ) grouping L to R parentheses
    2 ++   --  +  -  (type) increment, decrement
    unary + -
    cast
    R to L unary
    3 *   /   % multiplication
    division
    remainder
    L to R multiplicative
    4 +
    -
    +
    plus
    minus
    concatenation
    L to R additive
    5 <, <=
    >, >=
    less than, 
    less than or equal to,
    etc.
    L to R relational
    6 ==, != equal to,
    not equal to
    L to R equality
    7 =  +=  -=  *=  /=  %= assignment R to L assignment
 

manaris@cs.cofc.edu.
Last updated on Wednesday, August 30, 2000 04:24 PM -0400