wood burning stoves
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "nested classes" Watch "nested classes" New topic

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?

Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

[Jess in Action][AskingGoodQuestions]
Jim Yingst

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
I agree. Here's the link: http://aspose.com/file-tools
subject: nested classes
jQuery in Action, 3rd edition