February 2013
Intermediate to advanced
672 pages
16h 2m
English
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).
Literal: IntegerLiteral FloatingPointLiteral BooleanLiteral CharacterLiteral StringLiteral NullLiteral
An integer literal may be expressed in decimal (base 10), hexadecimal (base 16), octal (base 8), or binary (base 2).
IntegerLiteral: DecimalIntegerLiteral HexIntegerLiteral OctalIntegerLiteral BinaryIntegerLiteralDecimalIntegerLiteral: DecimalNumeral IntegerTypeSuffixoptHexIntegerLiteral: HexNumeral IntegerTypeSuffixoptOctalIntegerLiteral: OctalNumeral IntegerTypeSuffixoptBinaryIntegerLiteral: BinaryNumeral IntegerTypeSuffixopt
Read now
Unlock full access