Operators in Java
Operators in Java
Operators are special symbols that perform specific operations on one, two, or three operands, and then return a result.
Operators with higher precedence are evaluated before operators with relatively lower precedence. Operators on the same line have equal precedence. When operators of equal precedence appear in the same expression, a rule must govern which is evaluated first. All binary operators except for the assignment operators are evaluated from left to right; assignment operators are evaluated right to left.
Related concepts
- The Arithmetic Operators
- The Unary Operators
- The Equality and Relational Operators
- The Conditional Operators
- The Type Comparison Operator instanceof
- Bitwise and Bit Shift Operators
- The Assignment Operator
- Statements, Expressions, and Blocks
- Expressions
- Object: Creating Objects
- The Collectors.toList Method