Sweet! Reference types like String
can be null
whereas primitive types like int
and double
can't.
Psst: in most cases, we don't want a variable to be null
. Still, it's important to know what null
means because we'll encounter it from time to time.
Are you sure that this is a feasible way to assign no value to myName
?