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

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

Moderator: admin

Post Reply
sirtomash
Posts: 4
Joined: Mon Oct 17, 2016 8:45 am
Contact:

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

Post by sirtomash »

I think this option is not correct not only because of lack of getAsDouble() call:

Code: Select all

 
double average = nums.parallelStream().mapToInt(i->i).average();
also parallelStream() is not correct for Stream. I guess this shall be

Code: Select all

double average = nums.parallel().mapToInt(i->i).average().getAsDouble();

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

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

Post by admin »

I see that it has already been changed to parallel. Which question bank are you using?
If you like our products and services, please help us by posting your review here.

teodorj
Posts: 33
Joined: Tue Jun 19, 2018 10:27 am
Contact:

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

Post by teodorj »

double average = nums.parallelStream().mapToInt(i->i).average();

In 817, it is not changed to parallel()
question bank version 1/21

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

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

Post by admin »

Oh, you mean in the wrong option.
Explanation has now been added to include this point as well.
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 51 guests