Literals

Figure 92. Literal examples Slide presentation
int speedOfLight = 299792458;

double elementaryCharge = 1.602176634E-19;

boolean readyToGo = true;

char capitalB = 'B';

String name = "Cassandra";

Figure 93. Definition of literal Slide presentation

A textual representation defining both a value and its associated type.


Figure 94. Type and value Slide presentation