Multiple choice

Which of the following methods is used to return the preferred Locale for the content that the client will accept?

  1. public java.util.Enumeration getLocales()

  2. public java.util.Locale getLocale()

  3. Both 1 and 2.

  4. public java.util.Locales getLocale()

  5. None of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This method returns the preferred Locale for the content that the client will accept.