DRAFT
MultiValueVariable
Misconception:
At any given point in time, a variable can contain multiple values.
Incorrect
A variable can contain more than one value
Correct
CorrectionHere is what's right.
Here is what's right.
No! A variable contains exactly one value.
When you assign a new value to a variable, it overwrites the old value.
Language
Java
Concepts
Expressible In
StackHeapGlobalDiagram
variable containing a valueExpressionAsTree
value of expression involving variable access