Page 1 of 1
About Question enthuware.ocpjp.v7.2.1616 :
Posted: Mon Nov 24, 2014 3:23 pm
by SepticInsect
Why isn't alternativ 2 correct?
"package 'com' does not contain Base." But the class is refered to as enthu.Base.
Re: About Question enthuware.ocpjp.v7.2.1616 :
Posted: Mon Nov 24, 2014 8:45 pm
by admin
import statement imports only classes. It does not import sub packages.
So by importing com.*, you will be importing classes that are there directly in the package com. But the class that you need is in package com.enthu.
Re: About Question enthuware.ocpjp.v7.2.1616 :
Posted: Tue May 12, 2015 5:34 am
by Alina_Lapina
Is it correct to import only one class?
Re: About Question enthuware.ocpjp.v7.2.1616 :
Posted: Tue May 12, 2015 6:03 am
by admin
What happened when you tried it out?