Page 1 of 1

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

Posted: Mon Aug 12, 2019 12:00 pm
by sir_Anduin@yahoo.de
The explanation for
double average = nums.parallelStream().mapToInt(i->i).average();
seems to be wrong.
there is no method parallelStream() on the Stream interface

see:
https://docs.oracle.com/en/java/javase/ ... tream.html

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

Posted: Tue Aug 13, 2019 12:05 am
by admin
You are right. The explanation to this option should mention this as well along with the other reason that it mentions. Fixed.
thank you for your feedback!