Question regarding the method local innerclasses accesing the local variables of the method

Posted by flash on Stack Overflow See other posts from Stack Overflow or by flash
Published on 2010-05-04T09:07:18Z Indexed on 2010/05/04 9:18 UTC
Read the original article Hit count: 182

Filed under:

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'??

© Stack Overflow or respective owner

Related posts about java