A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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."
It is sorta covered in the
JavaRanch Style Guide
subject: Method local Inner Class
method-local inner class object cannot use the local variables
Method Local inner class
inner classes see everything?
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-2013