Page 1 of 1

About Question enthuware.ocpjp.v7.2.1484 :

Posted: Mon Jan 13, 2014 8:19 am
by jimi24
//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.

Re: About Question enthuware.ocpjp.v7.2.1484 :

Posted: Mon Jan 13, 2014 8:41 am
by admin
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.