Question regarding the method local innerclasses accesing the local variables of the method
- by flash
Hi I was going through the SCJP book about the innerclasses, and found this statement, it goes something like this.
"A method local class can only refer to the local variables which are marked final" and in the explanation the reason specified is about the scope and lifetime of the local class object and the local variables on the heap, But I am unable to understand that.am I missing anything here about 'final'??