Java运算符优先级对照表

2018-04-13     浏览次数:242

Java 运算符优先级
运算符 优先级
postfix expr++ 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 = += -= *= /= %= &= ^= |= <<= >>= >>>=
*转载请注明出处,更多资料尽在 吾爱编程
返回吾爱编程首页