Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeConcepts
Literal

Literal

A value that is written itself in the source code.

Related concepts:  Value

Closest Wikipedia entry:  Literal (computer programming)

Misconceptions about Literal
18 documented Misconceptions

Any LanguageJavaJavaScriptPythonScratch
Check Yourself
Misconception
ArrayInitializerContentsInBrackets
Array initializers list the elements in square brackets
Misconception
LargeIntegerLong
Large integer numbers have type long
Misconception
LiteralNoExpression
A literal is not an expression
Misconception
LiteralString
When passing a literal string as argument to a method, no quotes are needed
Misconception
NoAtomicExpression
Expressions must consist of more than one piece
Misconception
NoCallOnStringLiteral
One cannot invoke methods on String literals
Misconception
NoCharEscape
\ is a normal character in char and String literals
Misconception
NoFloatLiterals
There are no float literals
Misconception
NoLongLiterals
There are no long literals
Misconception
NullIsObject
null is an object
Misconception
RationalLiterals
Rational fractions are literals
Misconception
SingleQuoteString
String literals can be in single quotes
Misconception
StringLiteralNoObject
One needs to call the String constructor to get a String object from a literal

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors