About Question enthuware.ocpjp.v7.2.1484 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
jimi24
Posts: 5
Joined: Thu Jan 02, 2014 3:36 am
Contact:

About Question enthuware.ocpjp.v7.2.1484 :

Post 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.

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest