Java Reference
In-Depth Information
When the increment operator precedes its operand, Java will perform the increment
prior to obtaining the operand's value for use by the rest of the expression. If the op-
erator follows its operand, then Java will obtain the operand's value before incre-
menting.
In an expression,
byte
and
short
are promoted to
int
.
A cast is needed when converting between incompatible types or when a narrowing
conversion is occurring.
11
.
Does the use of redundant parentheses affect program performance?