Precedence Of Java Operator

Precedence Of Java Operators

  1. Uniary Operators :- [ 1st level [ ], x++, x– ], [ 2nd level ++x, –x, ~, ! ], [ 3rd level new, <type> ].
  2. Arithmetic Operators:- *, /, %, +, – .
  3. Shift Operators:- >>, >>>, << .
  4. Comparison Operators:- <, <=, >, >=, instance of, == .
  5. Bitwise Operators:- &, ^, | .
  6. Short Circuit Operators:- &&, || .
  7. Conditional Operators:-  ?, : .
  8. Assignment Operators:- =, +=, -=, *=, %=, &=, ^=, |= .

Leave a Reply