About Question enthuware.ocpjp.i.v11.2.3073 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
girishankaran
Posts: 10
Joined: Wed Aug 08, 2012 5:00 am
Contact:

About Question enthuware.ocpjp.i.v11.2.3073 :

Post by girishankaran »

Hi,
Anyone explain this question please?

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

Re: About Question enthuware.ocpjp.i.v11.2.3073 :

Post 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests