← BYTES
Java·Starter·Ref: 9.1.14

What does `null` represent when assigned to an object reference variable?

Have a question about this video? Mention reference 9.1.14 when you contact us.

a.The number zero
b.An empty String
c.The absence of any object -- the reference points to nothing
d.An uninitialized primitive
null is a special literal meaning a reference variable currently refers to no object at all; calling a method on a null reference throws a NullPointerException.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES9114#Java