One, the automatic promotion of the Java expression type
1. All byte, short, and char types will be promoted to the int type.
2. The data type of the entire arithmetic expression is automatically raised to the same type as the highest-level operand in the woo representation.
The type of the expression is strictly persisted and the same type as the highest-level operand in the expression
Ii. the difference between ++a and a++
Self-added. This is a single-mesh operator that can appear to the left of the operand or to the right. But the effect is not the same. If you put the + + on the left, then the operand is added 1, then the operand is put into the expression, if the + + is placed on the right, then the operand is put in the expression operation, and then the operand is added 1.
Three, a=a+7 and A + = 7 difference
Although the two are identical in the result of running, there are some differences in the operating mechanism of the bottom layer. Therefore, if you can
With this extended operator, this extended operator is used.
Four, comparison operators
Comparison operators are used to determine the size of two variables or constants, and the result of a comparison operation is a Boolean value
Learning Note 4