Literal
A value that is written itself in the source code.
Related concepts: Value
Closest Wikipedia entry: Literal (computer programming) — In computer science, a literal is a textual representation (notation) of a value as it is written in source code. Almost all programming languages have notations for atomic values such as integers, floating-point numbers, and strings, and usually for Booleans and characters; some also have notations for elements of enumerated types and compound values such as arrays, records, and objects. An anonymous function is a literal for the function type.
Misconceptions about Literal18 documented Misconceptions
Check YourselfArrayInitializerContentsInBrackets — Java
Array initializers list the elements in square bracketsBoxedNull — Java
Passing null to a wrapper class constructor creates an object representing the absence of a valueComparisonWithBoolLiteral — Python
To test whether an expression is True or False, one must compare it to True or to FalseLargeIntegerLong — Java
Large integer numbers have type longLiteralNoExpression — Java
A literal is not an expressionLiteralString — Java
When passing a literal string as argument to a method, no quotes are neededNoAtomicExpression — Java
Expressions must consist of more than one pieceNoAtomicExpression — JavaScript
Expressions must consist of more than one pieceNoAtomicExpression — Python
Expressions must consist of more than one pieceNoCallOnStringLiteral — Java
One cannot invoke methods on String literalsNoCharEscape — Java
\ is a normal character in char and String literalsNoFloatLiterals — Java
There are no float literalsNoLongLiterals — Java
There are no long literalsNullIsObject — Java
null is an objectNullIsObject — JavaScript
null is an objectRationalLiterals — Java
Rational fractions are literalsSingleQuoteString — Java
String literals can be in single quotesStringLiteralNoObject — Java
One needs to call the String constructor to get a String object from a literal