Introduction
Operators are used to perform operations by using operands. There are three types of operator depending on the number of operands required.
Arithmetic Operators
- Arithmetic Operators are used to form arithmetic expression to perform the arithmetic operations.
Assignment Operators
3.1 Simple Assignment Operator (=)
Increment (++) / Decrement (--) Operators
- Increment operator will be used to increase the value of the variable by 1.
Relational Operators
- These are binary operators.
Logical Operators
- Logical operators are used to form logical expressions.
new Operator
- new operator is used to create a new object for a class.
instanceof Operator
- It is used to check whether the given object belongs to specified class or not.
Conditional Operator
- It is ternary operator.
Bitwise Operators
- These operators will be used to perform the operation on individual bits of the value.
Operators Summary
Arithmetic Operators