This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Inner Class and Nested Class" Watch "Inner Class and Nested Class" New topic
Author

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
Richard
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.


Dave
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Inner Class and Nested Class
 
Similar Threads
nested class and inner class
nested class
inner class
Static Inner Class Challenge
no static method in inner class - why ?