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

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

Moderator: admin

Post Reply
Luiz Paro
Posts: 3
Joined: Wed Jan 29, 2014 5:42 pm
Contact:

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

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

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

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

Post 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.
If you like our products and services, please help us by posting your review here.

Luiz Paro
Posts: 3
Joined: Wed Jan 29, 2014 5:42 pm
Contact:

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

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

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 30 guests