Page 1 of 1

About Question enthuware.ocpjp.v17.2.3678 :

Posted: Mon May 23, 2022 5:54 pm
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.

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

Posted: Mon May 23, 2022 11:12 pm
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!

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

Posted: Wed Feb 07, 2024 4:22 am
by M.Komarov
Hi,

Code: Select all

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

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

Posted: Thu Feb 08, 2024 12:00 am
by admin
Yes, void should be there.
thank you for your feedback!