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

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
tiagofmartinho
Posts: 2
Joined: Mon Jun 22, 2020 9:35 am
Contact:

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

Post 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; };

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

You are right. Fixed.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests