About Question enthuware.ocpjp.v8.2.1542 :

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
lenalena
Posts: 56
Joined: Tue Feb 21, 2017 4:24 pm
Contact:

About Question enthuware.ocpjp.v8.2.1542 :

Post by lenalena »

I don't understand the explanation for the third option...

Option states
An instance of the nested class can be created from a class of package mypack using: new TestInner().
Explanation states:
Any class can statically import TestClass.TestInner like this: import static mypack.TestOuter.TestInner; and then create an instance of TestInner like this: TestOuter.TestInner ti = new TestOuter();
Should the bold text be new TestInner(); ?

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

Re: About Question enthuware.ocpjp.v8.2.1542 :

Post by admin »

Yes, it should be TestInner. Fixed.
thank you for your feedback!
Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests