aspose file tools*
The moose likes Beginning Java and the fly likes nested classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "nested classes" Watch "nested classes" New topic
Author

nested classes

Jitendra Jha
Ranch Hand

Joined: Jan 28, 2007
Posts: 91
I have come across a book which says that 2 types of nested classes.static and non-static.
how to create a static nested class?


Jitendra
SCJP1.5
SCWCD1.5
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34



[Jess in Action][AskingGoodQuestions]
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
Of course, it's more likely to compile if you give the nested class a different name from the outer class.


"I'm not back." - Bill Harding, Twister
 
jQuery in Action, 2nd edition
 
subject: nested classes