To declare a named constant :
static final datatype Identifier = value ;
Example 2-11
final double CENTIMETERS_PER_INCH=2.54;
final int NO_OF_STUDENTS = 20;
final char BLANK = ' ';
final double PAY_RATE = 15.75 ;
The default type of floating point numbers is double .
The declaration : final float rate = 15.5f ;
without the f , the compiler will generate an error .