About Question enthuware.ocpjp.ii.v11.2.3318 :
Posted: Fri Jun 26, 2020 9:51 am
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; };
Technically it can. This is legal:
Runnable r = () -> { multiple expressions or none; return; };