Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Help coderanch get a
new server
by contributing to the
fundraiser
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Devaka Cooray
Liutauras Vilda
Sheriffs:
Jeanne Boyarsky
paul wheaton
Henry Wong
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Carey Brown
Mikalai Zaikin
Bartenders:
Lou Hamers
Piet Souris
Frits Walraven
Forum:
Java in General
Inner classes
Anirban dutta
Ranch Hand
Posts: 89
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Can inner classes be
named
inside a function ?
Anthony Villanueva
Ranch Hand
Posts: 1055
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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.
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Inner class
Is there something called 'inner interface'?
Access Modifiers
What is a class file with $ symbol in the name
Classes declared as static?
More...