Skip to main content

Introduction

Operators are used to perform operations by using operands. There are three types of operator depending on the number of operands required.

  1. Unary Operator: Only one operand is required.
  2. Binary Operator: Two operands are required.
  3. Ternary Operator: Three operands are required.

Following are the types of operator depending on the operation:

  1. Arithmetic Operators i. Unary Arithmetic Operators ii. Binary Arithmetic Operators
  2. String Concatenation Operator
  3. Assignment Operator i. Simple Assignment Operator ii. Compound Assignment Operators
  4. Increment & Decrement Operators
  5. Relational Operators
  6. Logical Operators
  7. new Operator
  8. instanceof Operator
  9. Conditional or Ternary Operator
  10. Bitwise Operators