This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Use of Inner classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Use of Inner classes" Watch "Use of Inner classes" New topic

Use of Inner classes

Ravindranath Chowdary
Ranch Hand

Joined: Nov 08, 2006
Posts: 71
Hi Ranchers,
Can you please give me an idea of what is the need of inner classes with an example.

Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45338
Go here, download and unzip a copy of Thinking In Java (Bruce Eckel, 3rd edition) and look at the chapter about interfaces and inner classes (I think ch 8).
I agree. Here's the link:
subject: Use of Inner classes
It's not a secret anymore!