constant

Posted: December 17, 2014 in java basics

Constants:-  as the name sought these are fixed values which can never be change.

Example:

final int MAX_AGE=29;

“final” keyword is used to declare a constant in java.

________________________________________________________________________________

Leave a comment