Newer Version Available
Constants
Apex constants are variables whose values don’t change after being
initialized once.
Constants can be defined using the final keyword, which means that the variable can be assigned at most once, either in the declaration itself, or with a static initializer method if the constant is defined in a class. This example declares two constants. The first is initialized in the declaration statement. The second is assigned a value in a static block by calling a static method.
For more information, see Using the final Keyword.