Unary Operators « Operators « SCJP
Java Source And Data Type
Unary operators take only a single operand.
The unary operators are used to increment, decrement, or change the sign of a value.
Increment and Decrement
+ and - operators are applied to a value of byte, char, and short types, the value is converted to an int.
The ++ operators may appear before the value (prefix) or after the value (postfix).
preincrement or pre-decrement, post-increment or post-decrement
mixing the increment and decrement operators with other operators
increment or decrement operators on a final variable.
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.