Literals: Any constant value which can be assigned to the variable is called literal.Literals represent numerical (integer or floating-point), character, boolean or string values.
Example:
int literal = 100;
here the value 100 considered as a literal,int is datatype and literal is identifier.
Integral Literals: For the integral data types (byte, short, int and long) we can specify literal value in the following ways.
1. Decimal literals: Allowed digits are 0 to 9.
Example: int x=10;
Example:
int literal = 100;
here the value 100 considered as a literal,int is datatype and literal is identifier.
Integral Literals: For the integral data types (byte, short, int and long) we can specify literal value in the following ways.
1. Decimal literals: Allowed digits are 0 to 9.
Example: int x=10;

