Operasi-operasi yang menggunakan operator dapat melipat lebih dari 1 operator dan 1 operand. Urutan precedence operator dalam java tampak pada uraian berikut :
Postfix operators []. (params) expr++expr--
Unary operators ++expr --expr +expr – expr~!
Creation or cast New (type)expr
Additive +-
Shift << >> >>>
Relational <> <= >= instanceof
Equality == !=
Bitwise AND &
Bitwise exclusive OR^
Bitwise inclusive OR;
Logical AND &&
Logical OR ||
Conditional ?
Assignment = += -= *= /= %= &= ^= |= <<= >>= >>>=
0 komentar:
Posting Komentar