An assignment statement designates a value for a variable.
An assignment statement(赋值语句) can be used as an expression(赋值表达式) in Java.
In Java, an assignment statement is an expression that evaluates a value, which is assigned to the variable on the left side of the assignment operator.
Whereas an assignment expression is the same, except it does not take into account the variable.
表达式(expression) 表示涉及值、变量和操作符的一个运算,它们组合在一起计算出一
个新值。
在 Java 中,陚值语句本质上就是计算出一个值并将它賦给操作符左边变量的一个表达
式。由于这个原因,賦值语句常常称作賦值表达式(assignment expression)
赋值表达式末尾没有分号,而赋值语句末尾必须有分号。在一个表达式之中可以包含一个或多个赋值表达式,但绝不能包含赋值语句。