*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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 ,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: is inner class can be static . what is the purpose of inner class ??
 
Similar Threads
Class declaration
doubt on Inner class
non-static inner class
static declaration in inner class
Use of static inner classes