Given the content: and given the code fragment: Which two code fragments, when inserted at line 1 independently, enable the code to print "Wie geht's?"
A.
currentLocale = new Locale ("de", "DE");
B.
currentLocale = new Locale.Builder ().setLanguage ("de").setRegion ("DE").build();
C.
currentLocale = Locale.GERMAN;
D.
currentlocale = new Locale(); currentLocale.setLanguage ("de"); currentLocale.setRegion ("DE");
E.
currentLocale = Locale.getInstance(Locale.GERMAN,Locale.GERMANY);
A and B are correct. C gives de only, D doesn't compile since Locale doesn't have no-arg constructor and setters (that's Locale.Builder) and E doesn't compile since there is no getInstance method defined on Locale.
This section is not available anymore. Please use the main Exam Page.1z0-809 Exam Questions
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.
steefaand
10 months, 4 weeks agolchowen
2 years, 3 months agoWilsonKKerll
2 years, 9 months agoAVB22
3 years, 2 months agoEason_from_the_future
3 years, 4 months agoEason_from_the_future
3 years, 4 months agojduarte
3 years, 8 months agopul26
4 years ago