Q:

Confusion with Literal term in Java

I always come across the term literal.
What is that?
Is it that every primitive type variable is called as literal?

A:

Literal is any value, fixed, constant, used in your code.
For example:
    int a =0 ;
0 is a literal. The value of "0" is literally 0.

A:

Java Language Specification §3.10:

A literal is the source code representation of a value of a primitive type (§4.2), the String type (§4.3.3), or the null type (§4.1)...

