Introduction Operators in java

In Java, operators are used to do operations and manipulate variables. There are a lot of operators used in Java.

Java Basic Operators

Category  Operator  Associativity 
Postfix  () [] . (dot operator) Left to right 
Unary  ++ - - ! ~ Right to left 
Multiplicative   * / %  Left to right 
Additive   + -  Left to right 
Shift   >> >>> <<   Left to right 
Relational   > >= < <=   Left to right 
Equality   == !=  Left to right 
Bitwise AND  Left to right 
Bitwise XOR  Left to right 
Bitwise OR  Left to right 
Logical AND  &&  Left to right 
Logical OR  ||  Left to right 
Conditional  ?:  Right to left 
Assignment  = += -= *= /= %= >>= <<= &= ^= |=  Right to left 
Comma  Left to right 

Type of Operator in Java can be divided in following groups:


Java operator interview questions and answers
  • What is an operator in Java?
  • What is the use of dot operator?
  • What is the precedence of operators?
  • What is an operator and operand?

Next Concept Arithmetic Operators