• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 215
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: 41871
908
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.
 
Acetylsalicylic acid is aspirin. This could be handy too:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic