Literals, or constants, are any constant value that can be assigned to a variable. A literal is a set of symbols used to describe a constant value in the code. They are classified into the following types:
- Integer literals
- Floating point literals
- Boolean literals
- Symbol literals
- Character literals
- String literals
- Multi-Line strings