Unary Operators in Java
Unary Operators in Java
Both increment and decrement operator are used on a single operand or variable, so it is called as a
unary operator.
Unary operators are having higher priority than the other operators it means unary operators are
executed before other operators.
Note: Increment and decrement operators are can not apply on constant.