In your code you are not initializing the final variable during declaration.. Such variables are called "Blank Final" variables.
Originally posted by Bala Rajamani:
[B]Hi,
I came to know that if we use the final keyword to a member variable, then it has to be initialized either at declaration or through Constructor or static initializer.
Ref: the following code (Mock Exam from go4java Q25)
I have the following questions:
1. Can some one give better explanation for the above code?
2. Is there any other points to know about the final keyword?
Thanks in advance
Bala.
[This message has been edited by Bala Rajamani (edited October 08, 2001).][/B]