Loading…
Loading…
Ten exam-style questions on Locale formats and creation, NumberFormat factories, locale-aware parsing, CompactNumberFormat SHORT and LONG, localized date styles with withLocale, and Locale.Category, with explanations.
Practice questions for the article Java Locales: Localizing Numbers, Currency, Percentages, Compact Numbers and Dates.
Outputs here use locales whose formats are the same on Java 21 and later. Aim for at least 8 out of 10.
Quiz path: step 81. Take the quizzes in this order, after reading each article.
Previous quiz: Formatting Numbers and Dates (OCP 21)
Next quiz: Resource Bundles, MessageFormat and Properties (OCP 21)
10 questions · pass at 68%
Check your understanding; you see the answers and explanations after submitting.
Discussion
Sign in to ask a question or share what you learned.