62,615
社区成员
发帖
与我相关
我的任务
分享
The result of the postfix expression must be a variable of a numeric type,
or a compile-time error occurs.
The type of the postfix increment expression is the type of the variable.
The result of the postfix increment expression is not a variable, but a value.
A variable that is declared final cannot be incremented, because when an access of a final variable is used as an expression, the result is a value, not a variable. Thus, it cannot be used as the operand of a postfix increment operator.