About Question enthuware.ocajp.i.v7.2.915 :

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
Sevgi Insani
Posts: 4
Joined: Tue Jul 24, 2012 12:12 pm
Contact:

About Question enthuware.ocajp.i.v7.2.915 :

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

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

Re: About Question enthuware.ocajp.i.v7.2.915 :

Post by admin »

You are right. The class should be declared public. This has now been fixed.
Thank you for your feedback!

coco

Re: About Question enthuware.ocajp.i.v7.2.915 :

Post by coco »

In the answered E it is written test.log4j instead of util.log4j

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

Re: About Question enthuware.ocajp.i.v7.2.915 :

Post by admin »

You are right. This has now been fixed.

thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests