In any programming language a Literal is a constant value, where as identifiers can change their values. Identifiers can store literals and process them further. Identifiers are name given to variables.
1
, 1.5
, 'a'
, "abc"
, etc. are examples for literals. But in the statement x=123
, x is a variable and 123 is a Literal.