PrepAway - Latest Free Exam Questions & Answers

The logError method can be invoked by code in all classes in the same package as the Logger class.

The question requires that you evaluate the underlined text to determine if it is correct.

You have the following class definition:

The logError method can be invoked by code in all classes in the same package as the Logger class.

Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes the statement correct.

A. No change is needed
B. only by the Logger class

C. only by the Logger class and classes in the same package that inherit from it

D. by all classes in all packages


Leave a Reply