Page 1 of 1
About Question enthuware.ocajp.i.v7.2.915 :
Posted: Tue Jul 24, 2012 2:04 pm
by Sevgi Insani
Code: Select all
package util.log4j;
class Logger {
...
}
The class given above cannot be imported from another package as far as I know. That's because it is a package-private (no-modifier) class. Suspecting myself, I tried to compile it but it did not compile.
One of the correct options is using fully-qualified class name to use it but it does not compile.
Re: About Question enthuware.ocajp.i.v7.2.915 :
Posted: Tue Jul 24, 2012 8:14 pm
by admin
You are right. The class should be declared public. This has now been fixed.
Thank you for your feedback!
Re: About Question enthuware.ocajp.i.v7.2.915 :
Posted: Thu Nov 08, 2012 8:29 am
by coco
In the answered E it is written test.log4j instead of util.log4j
Re: About Question enthuware.ocajp.i.v7.2.915 :
Posted: Fri Nov 09, 2012 5:38 am
by admin
You are right. This has now been fixed.
thank you for your feedback!