The convention for constants in Java says that a constant must be declared with uppercase letters and the words should be separated by underscore (_).
The declaration of a constant is done by the sequence of the keywords static
and final
. Ex: public static final String NOME_COMPLETO = "José da Silva";
The class File has its constants declared in camelCase . That is, it does not follow the convention. Many other Oracle classes follow the convention.
Why is this different? Are there any other conventions that "override" this? Or was the convention ignored?