DRAFT
ExpressionAssigns
Misconception:
Using a variable in an expression, such as x+1
,
also updates the value of the variable (x
in this case)
at the end of the evaluation,
even without an assignment.
Incorrect
An expression that reads a variable also updates its value after the evaluation
Correct
A variable is only written using an assignment
Language
Java