Introducing final in java



Introducing final:


A variable can be declared as final. Doing so prevents its contents from being modified. This means that you must initialize a final variable when it is declared.

e.g. final double PI = 3.142857;

Post a Comment

Please do not enter any spam link in the comment box