Any has two subclasses, namely AnyVal and AnyRef. AnyVal represents value types. There are nine main value types supported in Scala:
Double
Float
Long
Int
Short
Byte
Char
Unit
Boolean
AnyRef represents reference types. Any type that is not a value type is a reference type, including types defined by users not predefined in Scala.