Operators are symbols that perform operations on variables and values.
Java can be classified into 5 types:
- Arithmetic Operators 🟢
- Assignment Operators 🟢
- Relational Operators 🟢
- Logical Operators 🟢
- Unary Operators
- Bitwise Operators
Extra: Java Increments Operators
Operators | Precedence |
---|---|
*, /, % | Evaluated first from left to right |
+, - | Evaluated second from left to right |