File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Inner Class and Nested Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Inner Class and Nested Class" Watch "Inner Class and Nested Class" New topic

Inner Class and Nested Class

Richard Teston
Ranch Hand

Joined: Feb 12, 2002
Posts: 89
What's difference between Inner Class and Nested Class?

The Code is the Programmer
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
A nested class is any class that is enclosed by another class. An inner class is any nested class that is not explicitly or implicitly declared static.
Check out the JLS section 8.1.2 for more details.

I agree. Here's the link:
subject: Inner Class and Nested Class
Similar Threads
Static Inner Class Challenge
nested class
no static method in inner class - why ?
nested class and inner class
inner class