This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
If you use final keyword then you are bound to initialize that variable at declaration time, this behavior guarantees that when class Inner will use x, x will have some value, so it can copy that value to s.
If you do not use final then there is no guarantee that when inner class will use x, x will have any value.
how is this right?
final int x;
is legal then how is initilizing at the declaration time right?
this was from one of the previous posts of Punit.....
scjp 1.6 91%, preparing for scmad
"Time to get MAD now.. we will get even later"....by someone unknown