aspose file tools*
The moose likes Java in General and the fly likes Inner classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Inner classes" Watch "Inner classes" New topic
Author

Inner classes

Anirban dutta
Ranch Hand

Joined: Aug 08, 2002
Posts: 89
Can inner classes be named inside a function ?
Anthony Villanueva
Ranch Hand

Joined: Mar 22, 2002
Posts: 1055
Yes. It's called a local inner class. If the method is static, this local inner class can only access static members of the enclosing class, as well as any local variables declared as final.
 
jQuery in Action, 2nd edition
 
subject: Inner classes