Introduction
Operators are used to perform operations by using operands. There are three types of operator depending on the number of operands required.
- Unary Operator: Only one operand is required.
- Binary Operator: Two operands are required.
- Ternary Operator: Three operands are required.
Following are the types of operator depending on the operation:
- Arithmetic Operators i. Unary Arithmetic Operators ii. Binary Arithmetic Operators
- String Concatenation Operator
- Assignment Operator i. Simple Assignment Operator ii. Compound Assignment Operators
- Increment & Decrement Operators
- Relational Operators
- Logical Operators
- new Operator
- instanceof Operator
- Conditional or Ternary Operator
- Bitwise Operators