Page 1 of 1

About Question enthuware.ocpjp.ii.v11.2.3318 :

Posted: Fri Jun 26, 2020 9:51 am
by tiagofmartinho
Regarding this question I think the explanation shouldn't say the following: " Further, since it does not return anything, the body part cannot contain an explicit return statement...".

Technically it can. This is legal:

Runnable r = () -> { multiple expressions or none; return; };

Re: About Question enthuware.ocpjp.ii.v11.2.3318 :

Posted: Sat Jun 27, 2020 12:10 am
by admin
You are right. Fixed.
thank you for your feedback!