This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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 Introducing JavaFX 8 Programming this week in the JavaFX 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Inner classes
 
It's not a secret anymore!