DRAFT
MultiReferenceVariable
Misconception:
A reference variable can refer to more than one object.
Incorrect
A reference variable can point to multiple objects
Correct
CorrectionHere is what's right.
Here is what's right.
A reference variable can only point to no object (null
) or to exactly one object at any given point in time.
Language
Java
Concepts
Expressible In
StackHeapGlobalDiagram
reference variable referring to heap objectExpressionAsTree
value of expression involving reference variable access