a) Lambda expressions can be used anywhere functional interfaces are expected.
b) Terminal operations are lazy—they perform the requested operation when they are
called.
c) Method reduce’s first argument is formally called an identity value—a value that, when
combined with a stream element using the IntBinaryOperator produces the stream element’s
original value. For example, when summing the elements, the identity value is
1 and when getting the product of the elements the identity value is 0.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here