Literals
String Literals
Integer Literals
Floating-Point Literals
Character Literals
Boolean Literals
By now, you must have noticed that we haven’t discussed strings. Strings do not fall under anyVal in the data type hierarchy. This raises the question: what are strings?
The single word answer is ‘literals’.