About Question enthuware.ocpjp.v17.2.3678 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
bjpeter
Posts: 9
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 646 times

admin
Site Admin
Posts: 10036
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!
If you like our products and services, please help us by posting your review here.

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: 10036
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!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 44 guests