Programming, Scala, Data Type, Abstraction, Introduction.
AnyRef represents our three reference types. And the following are the details, including bit sizes and data ranges, of our basic in-built Scala data types: Byte: 8-bit signed two’s complement integer (-128 to 127) Short: 16-bit signed two’s complement integer (-32768 to 32767) Int: 32-bit two’s