//Option 1:
A nested static class is simply a non-inner(also called top-level) class, scoped within another.
So the option 1 statement is not true. The moment you declare it static, it is no more inner-class, it is top-level class.
About Question enthuware.ocpjp.v7.2.1484 :
Moderators: Site Manager, fjwalraven
-
- Posts: 5
- Joined: Thu Jan 02, 2014 3:36 am
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1484 :
Actually, the correct terminology is "nested class". As per JLS chapter 8 :
A top level class is a class that is not a nested class.
A nested class is any class whose declaration occurs within the body of another class or interface.
An inner class is a nested class that is not explicitly or implicitly declared static.
This has now been updated.
Thank you for your feedback!
Paul.
A top level class is a class that is not a nested class.
A nested class is any class whose declaration occurs within the body of another class or interface.
An inner class is a nested class that is not explicitly or implicitly declared static.
This has now been updated.
Thank you for your feedback!
Paul.
Who is online
Users browsing this forum: No registered users and 1 guest