Locale.getDefault

Gets the current value of the default locale for the specified Category for this instance of the Java Virtual Machine. <p> The Java Virtual Machine sets the default locale during startup based on the host environment. It is used by many locale-sensitive methods if no locale is explicitly specified. It can be changed using the setDefault(LocaleCategory, Locale) method.

@param category - the specified category to get the default locale @throws NullPointerException if category is null @return the default locale for the specified Category for this instance of the Java Virtual Machine @see #setDefault(LocaleCategory, Locale)

  1. Locale getDefault()
  2. Locale getDefault(LocaleCategory category)
    class Locale
    static
    getDefault

Meta