2010年7月5日 星期一

[Java] 運算子優先順序Operator Precedence

Operator Precedence
OperatorsPrecedence
postfixexpr++ expr--
unary++expr --expr +expr -expr ~ !
multiplicative* / %
additive+ -
shift<< >> >>>
relational< > <= >= instanceof
equality== !=
bitwise AND&
bitwise exclusive OR^
bitwise inclusive OR|
logical AND&&
logical OR||
ternary? :
assignment= += -= *= /= %= &= ^= |= <<= >>= >>>=

Reference from : http://java.sun.com/docs/books/tutorial/java/nutsandbolts/operators.html
Related Posts Plugin for WordPress, Blogger...