Win a copy of Practical SVG this week in the HTML/CSS/JavaScript 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
Marshal
Posts: 10158
122
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
 
I was born with webbed fish toes. This tiny ad is my only friend:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!