What are Literals in java example
In java, literals are used for storing the constant value.
Example :-
“Literals” denoted String Literals,
‘P’ denoted Character Literals,
93.8 denotes floating points value Literals,
786 denotes an Integer Literals
Example :-
“Literals” denoted String Literals,
‘P’ denoted Character Literals,
93.8 denotes floating points value Literals,
786 denotes an Integer Literals
Comments
Post a Comment