Page 1 of 1
About Question enthuware.ocpjp.i.v11.2.3073 :
Posted: Sun Nov 24, 2019 7:55 am
by girishankaran
Hi,
Anyone explain this question please?
Re: About Question enthuware.ocpjp.i.v11.2.3073 :
Posted: Sun Nov 24, 2019 8:21 am
by admin
As the explanation to this question says, "The forEach method expects a Consumer. Further, since strList is a list of Strings, strList.forEach expects a Consumer<String>. Therefore, none of the given options can be passed to the forEach invocation."
Let us know which part are you not clear about so that we can help.