Page 1 of 1

About Question enthuware.ocpjp.v8.-2-.1738 :

Posted: Thu Feb 15, 2018 5:35 pm
by Luiz Paro
Hello,

I'm not sure if I understood why sum() is not marked as one possible solution for this question, since the explanation specifies sum(), max() and count() as possible specialized solutions. Could you clarify that for me please?

Thanks.

Re: About Question enthuware.ocpjp.v8.2.1738 :

Posted: Thu Feb 15, 2018 10:09 pm
by admin
The explanation given with this option specified exactly why it is an incorrect option-
This is a valid reduction operation but it is not in java.util.stream.Stream interface.
Methods to sum up the numbers in a stream are available in specialized Stream interfaces such an IntStream, LongStream, and DoubleStream.

Re: About Question enthuware.ocpjp.v8.2.1738 :

Posted: Fri Feb 16, 2018 7:40 pm
by Luiz Paro
For some reason the explanations in blue were not being shown in a couple of questions the last time I opened ETS Viewer, but now I can see them for every option in the question. Thanks.