Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

static inner class

 
hari harann
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when we declare the inner class as static it turns it into a static nested class not an inner class.. is the statement right?? explain me please.. Thanks in advance
 
Mark Vedder
Ranch Hand
Posts: 624
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a terminology thing. From the Sun Java Tutorial on nested classes:


Terminology: Nested classes are divided into two categories: static and non-static. Nested classes that are declared static are simply called static nested classes. Non-static nested classes are called inner classes.

Take a look at the page for more info. Also see the tutorial page on inner classes. Lastly, you can look at the Java Glossary's page on nested classes
[ August 07, 2008: Message edited by: Mark Vedder ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic