Literal:
A Literal is a constant value that is stored into the variable (obj reference) is called literal.
Ex:
a=10
Here 'a' is the variable into which the constant value '10 is stored. so 10 is called literal.
Here 10 is the data when it is stored into the variable, stored data is called Literal, Literal means constant value.
We have integer literal, float literal, String literal
No comments:
Post a Comment