Creating locales: Locale.of, constants, forLanguageTag and Locale.Builder
In one line: Locale.of normalizes case without validating, forLanguageTag turns bad tags into ROOT, and Locale.Builder throws on bad fields.
You’ve read your 2 free 1Z0-831 lessons
Sign up free to read every lesson — your progress is saved.