Grokking Java Basics
0% completed
Unary Operators
Unary operators perform operations on a single operand. They can modify the operand's value or state directly. In Java, unary operators are used to increment or decrement numeric values, change the sign of a number, or invert a boolean value.
Unary Operators
| Operator | Description | Example |
|---|---|---|
++ | Increment operator; increases a numeric variable by 1 | a++ or ++a |
| `-- |
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%