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

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

Moderator: admin

Post Reply
dfigueira
Posts: 21
Joined: Thu May 05, 2016 2:50 am
Contact:

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

Post by dfigueira »

Regarding this sentence in the explanation:
DoubleUnaryOperator is a function that accepts a Double value and returns a Double and so can be used here.
"(...)DoubleUnaryOperator is a function that accepts a double and returns a double (...)"
Since we are assigning this lambda expression to a DoubleFunction<DoubleUnaryOperator>, it implies that we are trying to using this lambda expression to implement a DoubleFunction that converts a Double into a DoubleUnaryOperator.
"(...)DoubleFunction that converts a double into a DoubleUnaryOperator(...)"

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

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

Post by admin »

Correct. Fixed.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

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

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

Post by sirtomash »

Besides technical issues this text contains letter typo:
Now, in this question we are using a DoubleStream and so, its map method expects a an operation that can accept a Double value and onvert it to some other Double value. (Note that the resulting stream, therefore, will also be of type DoubleStream).

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 131 guests