Grokking Java Basics
Vote

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

OperatorDescriptionExample
++Increment operator; increases a numeric variable by 1a++ or ++a
`--

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content