aspose file tools*
The moose likes Beginning Java and the fly likes what is the need of inner class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "what is the need of inner class" Watch "what is the need of inner class" New topic
Author

what is the need of inner class

Praveen palukuri
Ranch Hand

Joined: Feb 10, 2005
Posts: 65
hi,
would u please tell me the definition and need of inner classes

Thanks in advance.
Steve Morrow
Ranch Hand

Joined: May 22, 2003
Posts: 657

The Java� Tutorial - Nested Classes

Note: an inner class is a special kind of nested class.
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Also see the JavaRanch campfire story, "Getting in touch with your inner class."


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 5288
    
  10

One practical use of inner classes that I am increasingly adopting in my own work is for callbacks. See http://static.springframework.org/spring/docs/1.2.x/reference/orm.html#d0e7496 for an example


Junilu - [How to Ask Questions] [How to Answer Questions]
Naveen Vooka
Greenhorn

Joined: Oct 13, 2004
Posts: 25
http://java.sun.com/docs/books/tutorial/java/javaOO/innerclasses.html
http://www.javaworld.com/javaworld/javaqa/2000-03/02-qa-innerclass.html
http://builder.com.com/5100-6386-5035155.html

--------------
Naveen Vooka
www.devsquare.com
DevSquare - Online Application Development
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is the need of inner class