# About locales

In the Derby documentation, we refer to three locales:

- Java System locale

  This is the locale of your machine, which is automatically detected by your JVM. For Derby and Derby tools, the Java system locale determines the default locale.

- Database territory

  This is the territory associated with your database when it is created. By default, this is the same as the java system locale. The database territory determines the language of database errors.

- `ij` or `dblook` Session locale

  This locale is associated with your `ij` or `dblook` session. This locale determines the localized display format for numbers, dates, times, and timestamps.

Parent topic: Tools and localization
Related concepts
Database territory
Specifying an alternate codeset
Formatting display of locale-sensitive data