This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Java in General and the fly likes is inner class  can be static .  what is the purpose of inner class ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "is inner class  can be static .  what is the purpose of inner class ??" Watch "is inner class  can be static .  what is the purpose of inner class ??" New topic
Author

is inner class can be static . what is the purpose of inner class ??

yogendra singh
Greenhorn

Joined: Jan 08, 2004
Posts: 21
is inner class can be static . what is the purpose of inner class ??
Stephen Huey
Ranch Hand

Joined: Jul 15, 2003
Posts: 618
http://java.sun.com/docs/books/tutorial/java/javaOO/innerclasses.html
http://www.javaworld.com/javaworld/javaqa/2000-03/02-qa-innerclass.html
For a question like that, try Google next time! I use it all day every day!
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
yogendra,
Please forgive some of the locals, as they can be a bit grumpy sometimes.
Some developers might use static inner classes for organizational purposes - to control namespace - or to be able to access some private static member of the outer class.You might like to read the "I hate static!" section of the "Getting in Touch with your Inner Class" JavaRanch Campfire story.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
yogendra singh
Greenhorn

Joined: Jan 08, 2004
Posts: 21
Thanks Dirk ,
 
GeeCON Prague 2014
 
subject: is inner class can be static . what is the purpose of inner class ??