Java supports primitive types – byte, short, char, int etc.
Scala doesn’t – these are implemented as classes, similar to the java classes Byte, Long etc.
Declaring is simple when explicitly declaring type:
val i:Int = 5
and terse when letting the compiler work it out:
val i = 5
Might be worth noting here, ‘val’ declares that a value will be a constant (final).