Java Learner logo
← Exit to Module 9: Advanced Core Features lessons
Module progress · 0%Lesson · 16 min

Module 9: Advanced Core Features

Lesson focus

Formatting & Localization

Use `String.format`, `Formatter`, and `NumberFormat` for human-friendly output.

Format specifiers (%d, %s, %.2f) provide precise control; use locale-aware factories for currency/percentages.

Adopt MessageFormat or resource bundles for UI strings to avoid concatenation that breaks localization.

Prefer DateTimeFormatter over legacy SimpleDateFormat—immutable and thread-safe.

Lesson quiz

Which API provides locale-aware currency formatting?

Next lesson →