Hi, friends,
i m having doubt about innerclass which declared inside method.
As we know that such a innerclass can access only final local variables of the method.
Also I know that all final variables accessed by Inner Class are implicitly added as its member variables to the Innerclass by Java Compiler.So it can be accessed after method completes....You can check this in the following code you are still getting x 's value by myAA 's referece.
Now after removing the comment at Class AA....
where i m confused is in Class AA also having member x with value 123 now innnerClass accessing the method variable x .so according to member hiding principle the output should be 90 but with surprise it comes....123
So can any body answer my query ?

[EMAIL]rutvij(at)elitecore.com[/EMAIL]
[ June 23, 2005: Message edited by: Barry Gaunt ]