ankitweblogic logo
W e b t u t o r i a l s

Define Java

C vs C++ vs Java

Java Virtual Machine

Set Java Path

Java Tokens

Reserved Keywords

Identifiers

Literals

Operators

Operator Precedence

Escape Sequences

Java Operator Precedence and Associatively

Rank Operator Associatively
1 . , () , [] Left to Right
2 ++ , -- Right to Left
3 * , / , % Left to Right
4 + , - Left to Right
5 << , >> , >>> Left to Right
6 < , <= , > , >= Left to Right
7 == , != Left to Right
8 & Left to Right
9 ^ (XOR) Left to Right
10 | Left to Right
11 && Left to Right
12 || Left to Right
13 ? : Right to Left
14 = Right to Left