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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access