Constant example


PROGRAM:

To show constant.

/**
             * @Prof. Jayesh
             * Here age is constant, which have fix value 28.
             */

public class ConstantClass {
            public static void main(String args[]){
                        int age = 28;
                        System.out.println("age= "+Age);
            }
}

OUTPUT:
age= 28