Java – Operators and Expressions
An operator is a symbol or letter used to indicate a specific operation on a variable in a program. For Example, the symbol ‘+’ is an add operator that adds two data items called operands.
An expression is a combination of operands (i.e., constants, variables, numbers) connected by operators and parenthesis. For instance, in the expression given below, A and B are operands, and ‘+’ is an operator
A + B
Java supports many types of operators such as arithmetic operator, relational operator, and logical operator, etc. An expression that involves arithmetic operators is known as an arithmetic expression. The expression which involves relational and logical is called a Boolean expression.