In the Java programming language, constants can be defined by field declarations with both modifiers static and final. As a simplification, the new modifier const can be used for this purpose in the XL programming language.