java.util · java.base · since Java 1.1
Locale
public final class Locale implements Cloneable, SerializableLanguage + region (+ script) identifier driving all locale-sensitive behavior: formatting, collation, resource-bundle selection. Machine-facing strings use Locale.ROOT.
Key methods
static Locale forLanguageTag(String tag) | BCP 47: "sr-Latn-RS", "en-US". |
static Locale getDefault() | The JVM default — an input to respect, not to assume. |
ROOT / US / GERMANY … | Constants; ROOT = locale-neutral for protocols and logs. |