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.
About Question enthuware.ocpjp.v17.2.3678 :
Moderator: admin
-
- Posts: 10
- Joined: Thu Jun 27, 2019 3:42 pm
- Contact:
About Question enthuware.ocpjp.v17.2.3678 :
- Attachments
-
- Screen Shot 2022-05-23 at 6.52.00 PM.png (246.96 KiB) Viewed 3240 times
-
- Site Admin
- Posts: 10170
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v17.2.3678 :
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!
Fixed.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.
-
- Posts: 17
- Joined: Fri Sep 06, 2013 1:37 am
- Contact:
Re: About Question enthuware.ocpjp.v17.2.3678 :
Hi,
Shouldn't there be a return type in LINE 1?
Code: Select all
public interface Drivable{
drive(); // LINE 1
}
-
- Site Admin
- Posts: 10170
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v17.2.3678 :
Yes, void should be there.
thank you for your feedback!
thank you for your feedback!
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 1 guest