// named constants // use the keyword final // Don't want to use LITERALS (actual values) // Do NOT want the variable to be allowed to be changed public class FinalVars /** This class demonstrates using final variables **/ { public static void main(String[] args) { final double INTEREST = 1.29; // bank is giving 1.29% interest double balance = 987; // 1.29% of a balance double interest = INTEREST/100*balance; System.out.println("interest on " + balance + " is " + interest); // INTEREST++; Not allowed to change this variable at all } }