Java operators



Operators in Java Programming Language :

  1. In Java Variables are Value Container used to store some value.
  2. In order to Perform some operation on the Data we use different operators such as arithmetic Operator,Logical Operator etc.

Operators are Classified as –

  1. Assignment Operator
  2. Arithmetic Operator
  3. Unary Operators
  4. Equality Operator
  5. Relational Operator
  6. Conditional Operators
  7. Bitwise and Bit Shift Operators

Operator and Its Precedence Table in Java

OperatorsPrecedence
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
= += -= *= /= %= &= ^= |= <<= >>= >>>=

Summary of Java Operators :

Operator in Java Programming Language
Operator in Java Programming Language3