Solved

Which of the Following Statements Is False

Question 38

Multiple Choice

Which of the following statements is false?


A) You filter elements to produce a stream of intermediate results that match a predicate.
B) IntStream method filter receives an object that implements the IntPredicate functional interface (package java.util.function) .
C) IntStream method sorted (a lazy operation) orders the elements of the stream into ascending order by default.All prior intermediate operations in the stream pipeline must be complete so that method sorted knows which elements to sort.
D) Method filter is a stateless intermediate operation-it requires information about other elements in the stream in order to test whether the current element satisfies the predicate.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions