posted 18 years ago
Method local inner classes cannot access the method's local variables. This is understandable as the local variables will be blown out of stack once the control comes out of the method.
But, I also found that local variables marked as final can be accessed by the method local inner class.
What is the reason for this? Won't the final variable, local to a method, be thrown out of the stack once control comes out of the method?
Pls explain.
Thanks in advance
Sriram.