Java SE 11 Developer (1Z0-819) — Question 153

Which two assignments create Locale instances? (Choose two.)

Answer options

Correct answer: C, E

Explanation

Option C is correct because it directly creates a new Locale instance with specified language and country parameters. Option E is also correct as it retrieves the default Locale instance for the system. The other options do not create Locale instances; A and B are just string assignments, while D returns an array of available locales.