Literals

A literal is the source code representation of a value of a primitive type, the String type, or the null type. Please refer to the Java Language Specification (Joy et al., 2000) for the lexical structure of IntegerLiterals, FloatingPointLiterals, CharacterLiterals, and StringLiterals.

IntegerLiteral: ... 
FloatingPointLiteral: ... 
BooleanLiteral: one of 
    true false 
CharacterLiteral: ... 
StringLiteral: ... 
NullLiteral: 
    null 
Literal: 
    IntegerLiteral 
    FloatingPointLiteral 
    BooleanLiteral 
    CharacterLiteral 
    StringLiteral 
    NullLiteral 

Get Java™ Data Objects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.