Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inner Class and Nested Class

 
Richard Teston
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's difference between Inner Class and Nested Class?
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic