I'm wondering how these locale objects are created i.e Locale.FRENCH looks like enum constant not an object.
posted 4 years ago
They're static final members of the Locale class, which are also Locale objects. That's how you used to get a similar effect to an enum before enums were introduced to the language, but in this case an enum wouldn't be any good because we also need to be able to create new Locale objects.
The source code looks something like this:
(with the object being created by the createConstant() method)