Page 1 of 1

About Question enthuware.ocpjp.v11.2.1879 :

Posted: Wed Sep 28, 2022 12:12 pm
by hydro_555
The last option :

Code: Select all

interface F{   void m(){ } }
Should also be a valid functional interface ? Since

Code: Select all

void m()
is implicilty abstract. Or am I missing something

Re: About Question enthuware.ocpjp.v11.2.1879 :

Posted: Wed Sep 28, 2022 12:59 pm
by admin
No, the { } imply that the method has a body, which means, it is not abstract.
Also, check whether it even compiles!

Re: About Question enthuware.ocpjp.v11.2.1879 :

Posted: Wed Sep 28, 2022 1:19 pm
by hydro_555
Thank you for your answer