L025 | Operators and its Forms (UNARY, BINARY, TERNARY) in Java

1. What are Operators?

Definition

An operator is a special symbol in Java that is used to perform operations on variables and values.

Example:

int a = 5, b = 3;
int sum = a + b; // '+' is the addition operator

Here:

2. Role of Operators in Expressions

Example:

int result = (10 + 5) * 2;

Here: