aspose file tools*
The moose likes Mock Exam Errata and the fly likes Top level nested classes? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Mock Exam Errata
Bookmark "Top level nested classes?" Watch "Top level nested classes?" New topic
Author

Top level nested classes?

Mike Kelly
Ranch Hand

Joined: Jul 18, 2001
Posts: 78
Which of the following statements are true about Inner classes?
A top level nested class is a static class and thus does not need an instance of it's enclosing class. (Jwhiz exam #1,Q13)
My Question: Top level class means non-inner, nested class means inner, how can there be a top level nested class?
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Mike
A static inner clas is commonly refered to as a top level nested class. Because it's static, like all other static variables, it doesn't need an instance of the outer class to be created.
hope that helps
Dave


Dave
Mike Kelly
Ranch Hand

Joined: Jul 18, 2001
Posts: 78
Originally posted by Dave Vick:
Mike
A static inner clas is commonly refered to as a top level nested class. Because it's static, like all other static variables, it doesn't need an instance of the outer class to be created.
hope that helps
Dave

Alrighty then. Because I have no other programming experience, I'm suceptible to mistakes like these. I had never heard the term. I knew top level and nested, but not toplevel nested.
Thanks again.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Top level nested classes?