answer : C
Actually
D. locale = Locale.getAvailableLocales()
E. locale = Locale.getDefault();
They are both not created new instances
They just return already existed one.
Option C creates a new Locale instance using the Locale constructor that takes two arguments: a language code and a country code. In this case, the language code is "en" for English and the country code is "GB" for Great Britain.Option E creates a Locale instance by calling the static method Locale.getDefault(), which returns the default Locale for the current instance of the Java Virtual Machine.
upvoted 2 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
cathDev
3 months, 1 week agoASPushkin
4 months agoASPushkin
4 months agoOmnisumem
9 months agoStavok
11 months, 4 weeks ago