Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

literal

A value written directly in source code, such as 42, 2.5, 'A' or "Hi".

A literal is a source-code representation of a fixed value whose form determines its type, for example 42 (int), 42L (long), 4.2 (double), 4.2f (float), 'A' (char).

Examples

  • 42, 3_000_000_000L, 2.5, 7.5f, 'A', true and "Total" are literals.

Read the full section →