About Question enthuware.ocpjp.v7.2.1346 :

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
RobynBackhouse
Posts: 23
Joined: Sun Apr 14, 2013 10:37 am
Contact:

About Question enthuware.ocpjp.v7.2.1346 :

Post by RobynBackhouse »

The answer here is not conclusive.
The question asks:
What methods HAVE TO BE implemented for a class implementing both I1 and I2, not what methods CAN BE implemented.
The correct answer is given to be
public void m1() throws FileNotFoundException

I would argue that this is not necessarily correct however, as this does not actually have to be implemented.
A perfectly valid method implementation would be:
public void m1(){}
An empty subset of the exceptions is a valid subset, so although the one stated certainly CAN be implemented in this case, it does not actually HAVE to be, and that is what the question asks..

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

Re: About Question enthuware.ocpjp.v7.2.1346 :

Post by admin »

You are right. The problem statement has now been updated to make it clearer.
thank you for your feedback!
-Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests