literal

A value written directly in source code, such as 42, 3.5, "hi" or true.

In more detail

A literal means exactly what it says, whereas an identifier is a name that refers to a value stored elsewhere. Each type has its own literal form, such as quotes for strings and digits for numbers. In many languages the form also decides the exact type, so 42 and 42.0 are different kinds of number.

Examples

9000000000L
"ready"

Related terms

Taught in

References

Certification courses