A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Programmer Certification (SCJP/OCPJP)
Method local Inner Class
Joined: May 09, 2008
May 09, 2008 14:09:00
Method local inner class cannot use method local variables. But it can use method local variables marked as 'final'. Why is it so?
Joined: Aug 31, 2004
May 09, 2008 14:48:00
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award."
I agree. Here's the link:
subject: Method local Inner Class
inner classes see everything?
Method Local inner class
method-local inner class object cannot use the local variables
Method local inner class
Inner classes and local variables
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014