Contants in Apex NOTE: Once you assign a value to a constant variable, you cannot change that value later on. Declare Constant Variable with - Final final Decimal PI; System.debug(PI); //prints null initialize variable PI = 3.14159; System.debug(PI); // 3.14159 update variable value - NOT ALLOWED PI = 2.14159; System.debug(PI); // ----