W
walidhaouari
Plz can someone explain the difference between static final variable
and final instance variable
regarding their initilisation: in particular : I noticed that if we
leave a final INSTANCE variable non initialised, the code will compile
fine (unless we make a call to it) while it's not the case for a
static final variable.
I tryed to look everywhere but it's always mentioned that if we leave
a final variable not initilized it will result in compile time error!
Can someone explain the rule about that?
Thanks;
Walid Haouari
and final instance variable
regarding their initilisation: in particular : I noticed that if we
leave a final INSTANCE variable non initialised, the code will compile
fine (unless we make a call to it) while it's not the case for a
static final variable.
I tryed to look everywhere but it's always mentioned that if we leave
a final variable not initilized it will result in compile time error!
Can someone explain the rule about that?
Thanks;
Walid Haouari