Loading...
Java

Literals

Any constant value which are assigned to the variables are called literal.

Example:
int x=10

int —-> datatype|keyword
x ——-> name of variable|identifier
10 —–> constant value|literal

Leave a Reply

Your email address will not be published. Required fields are marked *