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; };
About Question enthuware.ocpjp.ii.v11.2.3318 :
Moderators: Site Manager, fjwalraven
-
- Posts: 2
- Joined: Mon Jun 22, 2020 9:35 am
- Contact:
-
- Site Admin
- Posts: 10078
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.ii.v11.2.3318 :
You are right. Fixed.
thank you for your feedback!
thank you for your feedback!
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 14 guests