• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Sybex Java 8 OCA/OCP Practice Tests Chapter 22 Localiaztion question 22 mock answer typo page 548

 
Ranch Hand
Posts: 216
11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sybex Java 8 OCA/OCP Practice Tests Chapter 22 Localiaztion  question 22 mock answer typo page 548

22. How many lines does the following print out?
3:   Locale.setDefault(Locale.KOREAN);
4:   System.out.println(Locale.getDefault());
5:   Locale.setDefault(new Locale("en", "AU"));
6:   System.out.println(Locale.getDefault());
7:   Locale.setDefault(new Locale("EN"));
8:   System.out.println(Locale.getDefault());

The last line in the answer explanation is:

"The three lines printed by the code are ko, en_US and en."

It should be en_AU instead of en_US

by alinvlad05
 
author & internet detective
Posts: 42160
937
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Confirmed and added to the errata.
 
reply
    Bookmark Topic Watch Topic
  • New Topic