Java Code conventions gives an instruction that constant name must be uppercase.
Java Specification gives a definition of constant:
A constant variable is a final variable of primitive type or type String that is initialized with a constant expression.
Now look, for example, class LocalDate
. We can see variables that are not constants by definition, but named as constant (uppercase). Why?
public static final LocalDate MIN = LocalDate.of(Year.MIN_VALUE, 1, 1);