Literals are number, text, or anything that represent a value.
In other words, Literals in Java are the constant values
assigned to the variable.
It is also called as constants........
String str1 = "Java Programming";
String str2 = "Programiz";
int a = 1;
float b = 2.5;
char c = 'F';