Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is the need of inner class

 
Praveen palukuri
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
would u please tell me the definition and need of inner classes

Thanks in advance.
 
Steve Morrow
Ranch Hand
Posts: 657
Clojure Spring VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java� Tutorial - Nested Classes

Note: an inner class is a special kind of nested class.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also see the JavaRanch campfire story, "Getting in touch with your inner class."
 
Junilu Lacar
Bartender
Pie
Posts: 7329
45
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic