Loading…
Loading…
Ten exam-style questions on DecimalFormat patterns, rounding and parsing, ISO DateTimeFormatter constants, custom date/time pattern letters, type compatibility, escaping literal text, and parsing dates, with explanations.
Practice questions for the article Java Formatting: DecimalFormat, DateTimeFormatter Patterns and String.format.
The questions pass Locale.US (or US symbols) where the output depends on the locale. Aim for at least 8 out of 10.
Quiz path: step 80. Take the quizzes in this order, after reading each article.
Previous quiz: try-with-resources and Suppressed Exceptions (OCP 21)
Next quiz: Locales and Localized Formatting (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.