Chapter 22Localization

THE OCP EXAM TOPICS COVERED IN THIS PRACTICE TEST INCLUDE THE FOLLOWING:

  • Localization
    • Read and set the locale by using the Locale object
    • Create and read a Properties file
    • Build a resource bundle for each locale and load a resource bundle in an application
  1. Which is not a locale?

    1. Cultural region
    2. Geographical region
    3. Political region
    4. Time zone region
  2. When localizing an application, which type of data varies in presentation depending on locale?

    1. Currencies
    2. Dates
    3. Both
    4. Neither
  3. How do you find out the locale of the running program?

    1. Locale.get("default")
    2. Locale.get(Locale.DEFAULT)
    3. Locale.getDefault()
    4. None of ...

Get OCA / OCP Java SE 8 Programmer Practice Tests now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.