Saturday, August 5, 2017

Operators


Operator is a symbol that is used to perform operations.
Types of operators in java

  1. Arithmetic operators
  2. Relation operators
  3. Logical operators
  4. Bitwise operators
  5. Assignment operators
  6.  Ternary operator
  7. Unary Operator
Arithmetic operators

Arithmetic operators are used in mathematical expression.

Relation operators



Logical operators
Bitwise operators

Assignment Operators
Ternary operator
It is also known as Conditional operator and used to evaluate Boolean expression.
epr1 ? expr2 : expr3
If epr1Condition is true? Then value expr2 : Otherwise value expr3

Unary Operators


No comments:

Post a Comment