SE450
:
The null Reference
[18/53]
null
refers to no object
Can assign
null
to object variable:
worldGreeter = null;
Can test whether reference is
null
if (worldGreeter == null) . . .
Dereferencing
null
causes
NullPointerException