Self-Review Exercises

17.1 Fill in the blanks in each of the following statements:

a) Lambda expressions implement _________.

b) Functional programs are easier to _________ (i.e., perform multiple operations simultaneously) so that your programs can take advantage of multi-core architectures to enhance performance.

c) With _________ iteration the library determines how to access all the elements in a collection to perform a task.

d) The functional interface _________ contains method apply that takes two T arguments, performs an operation on them (such as a calculation) and returns a value of type T.

e) The functional interface _________ contains method test that takes a T argument and returns a boolean, and tests whether the T argument satisfies ...

Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.