Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Inner classes actual usage.  RSS feed

 
subramanian annamalai
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to know where all the scenarios the Inner classes concept will be used. any links to read will be helpful.

Thanks
Subu
 
Mark Beavis
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Inner classes are used quite frequently when dealing with event handlers.

They're quite tricky to get your head round, but once you do they actually make quite a lot of sense.

I posted this thread a few days ago which helped me quite a bit:

http://www.coderanch.com/t/248962/java-programmer-SCJP/certification/anonymous-inner-classes

That might help you for a starter.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!