File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

what is the need of inner class

Praveen palukuri
Ranch Hand

Joined: Feb 10, 2005
Posts: 65
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

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
Junilu Lacar

Joined: Feb 26, 2001
Posts: 6529

One practical use of inner classes that I am increasingly adopting in my own work is for callbacks. See for an example

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

Joined: Oct 13, 2004
Posts: 25

Naveen Vooka
DevSquare - Online Application Development
I agree. Here's the link:
subject: what is the need of inner class
jQuery in Action, 3rd edition