Java: Literals
A literal represents a quantity that what you see is what you get.
For example the number four is represented by the literal 4.
Boolean Literals
There are two: true and false.
Character Literals
These are expressed by a single character surrounded by a single quotation.
Example: 'a'
String Literals
Simply surround the string with double quotes. Example:
"Hi how are you today?"