Null, null, Nil, Nothing, None, and Unit in Scala

Null– Its a Trait. null– Its an instance of Null- Similar to Java null. Nil– Represents an emptry List of anything of zero length. Its not that it refers to nothing but it refers to List which has no contents. Nothing is a Trait. Its a subtype of everything. But not superclass of anything. There … Read more