Scala Library: scala.Null
scala.Null
Null
is - together with scala.Nothing - at the bottom of the Scala type
hierarchy.
Null
is a subtype of all reference types; its only instance is the null
reference. Since Null
is not a subtype of value types, null
is not a member
of any such type. For instance, it is not possible to assign null
to a
variable of type scala.Int.
Full Source:
Interested in Scala?
I send out weekly, personalized emails with articles and conference talks.
Subscribe now.