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
Post a Comment
Post a Comment
Please do not enter any spam link in the comment box