if an instance variable of a class has a default initial value then why we need to explicitly initialize the final
instance variable of class?
I mean to say if we are not initializing the final variable it should take default value because that is the property of instance variable of a class.
Asked
Active
Viewed 128 times
0

user3034865
- 11
- 2
-
Final it self mean that. – Suresh Atta Dec 10 '13 at 11:51
-
I mean to say if we are not initializing the final variable it should take default value because that is the property of instance variable. – user3034865 Dec 10 '13 at 11:55
-
What point is there in a `null`-valued final variable? You can just replace all its occurences with `null`. – Marko Topolnik Dec 10 '13 at 11:59
-
yes in object case there is no point in using that but in case of primitive data type at least it can come in use for some cases. – user3034865 Dec 10 '13 at 12:18