exam questions

Exam 1z0-819 All Questions

View all questions & answers for the 1z0-819 exam

Exam 1z0-819 topic 1 question 147 discussion

Actual exam question from Oracle's 1z0-819
Question #: 147
Topic #: 1
[All 1z0-819 Questions]

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

  • A. locale = “fr_FR”;
  • B. locale = “en-USA”;
  • C. locale = new Locale(“en”, “GB”);
  • D. locale = Locale.getAvailableLocales();
  • E. locale = Locale.getDefault();
Show Suggested Answer Hide Answer
Suggested Answer: CE 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
cathDev
3 months, 1 week ago
Selected Answer: CE
Tested CE D return [] of Locale
upvoted 1 times
...
ASPushkin
4 months ago
Selected Answer: C
answer : C Actually D. locale = Locale.getAvailableLocales() E. locale = Locale.getDefault(); They are both not created new instances They just return already existed one.
upvoted 1 times
...
ASPushkin
4 months ago
Selected Answer: D
D. locale = Locale.getAvailableLocales() It could be Locale[] locale = Locale.getAvailableLocales()
upvoted 1 times
...
Omnisumem
9 months ago
Selected Answer: CE
Tested: CE.
upvoted 2 times
...
Stavok
11 months, 4 weeks ago
Selected Answer: CE
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
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago