About Question enthuware.ocpjp.v17.2.3678 :

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
bjpeter
Posts: 12
Joined: Thu Jun 27, 2019 3:42 pm
Contact:

About Question enthuware.ocpjp.v17.2.3678 :

Post by bjpeter »

Should the correct answer be "exports com.auto.vehicles" because exports is used for packages, not interfaces? Please see the attached screenshot.

The explanation shows the com.auto.whatever module, and it is using a package name for the exports statement.
Attachments
Screen Shot 2022-05-23 at 6.52.00 PM.png
Screen Shot 2022-05-23 at 6.52.00 PM.png (246.96 KiB) Viewed 4274 times

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

Re: About Question enthuware.ocpjp.v17.2.3678 :

Post by admin »

You are right. As the explanation says, it should have "exports com.auto.vehicles", and not "exports com.auto.vehicles.Drivable". The option is wrongly marked as correct.
Fixed.
thank you for your feedback!

M.Komarov
Posts: 17
Joined: Fri Sep 06, 2013 1:37 am
Contact:

Re: About Question enthuware.ocpjp.v17.2.3678 :

Post by M.Komarov »

Hi,

Code: Select all

public interface Drivable{
  drive(); // LINE 1
}
Shouldn't there be a return type in LINE 1?

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

Re: About Question enthuware.ocpjp.v17.2.3678 :

Post by admin »

Yes, void should be there.
thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests