Exam 17: Lambdas and Streams

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Which of the following statements is false?

(Multiple Choice)
4.7/5
(33)

Class IntStream provides terminal operations for common stream ________-count returns the number of elements, min returns the smallest int, max returns the largest int, sum returns the sum of all the ints and average returns an OptionalDouble (package java.util) containing the average of the ints as a value of type double.

(Multiple Choice)
4.9/5
(34)

A nice performance feature of lazy evaluation is the ability to perform________ evaluation, that is, to stop processing the stream pipeline as soon as the desired result is available.

(Multiple Choice)
4.9/5
(39)

Terminal Stream operation ________ performs processing on every element in a stream (e.g., display each element).

(Multiple Choice)
4.8/5
(37)

Which of the following statements is true?

(Multiple Choice)
4.8/5
(34)

The basic generic functional interface ________ in package java.util.function contains method apply that takes two T arguments, performs an operation on them (such as a calculation) and returns a value of type T.

(Multiple Choice)
4.8/5
(40)

Functional interface BiConsumer's accept method has two parameters. For Maps, the first represents the ________ and the second the corresponding ________.

(Multiple Choice)
4.8/5
(39)
Showing 61 - 67 of 67
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)