aspose file tools*
The moose likes Beginning Java and the fly likes 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 "Inner class" Watch "Inner class" New topic
Author

Inner class

Jait Thomas
Ranch Hand

Joined: Jul 03, 2003
Posts: 31
Can somebody tell me an instance in which we use inner class?


Jait Thomas<br />SCJP 1.2, SCWCD, SCDJWS 1.4 & 5.0
Kenneth Brooks
Greenhorn

Joined: Feb 21, 2005
Posts: 9
http://java.sun.com/docs/books/tutorial/java/javaOO/innerclasses.html

The examples there aren't exactly the best. The most common use for inner classes is for event listeners (anonymous inner classes).
Hentay Duke
Ranch Hand

Joined: Oct 27, 2004
Posts: 198


ActionListener as an inner class.
 
jQuery in Action, 2nd edition
 
subject: Inner class