About Question enthuware.ocpjp.ii.v11.2.3317 :
Posted: Sat Nov 14, 2020 7:12 pm
Regarding this sentence in the explanation:
"(...)DoubleUnaryOperator is a function that accepts a double and returns a double (...)"DoubleUnaryOperator is a function that accepts a Double value and returns a Double and so can be used here.
"(...)DoubleFunction that converts a double into a DoubleUnaryOperator(...)"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.