Page 1 of 1

About Question enthuware.ocpjp.v8.2.1542 :

Posted: Tue May 16, 2017 9:14 pm
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(); ?

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

Posted: Tue May 16, 2017 9:25 pm
by admin
Yes, it should be TestInner. Fixed.
thank you for your feedback!
Paul.