previous | start | next

Self Check

  1. What is the difference between the following two statements?
    final double CM_PER_INCH = 2.54;
    and
    public static final double CM_PER_INCH = 2.54;
  2. What is wrong with the following statement?
    double circumference = 3.14 * diameter;

previous | start | next