17.10 Q3: Class Arrays provides ________ stream methods for creating
IntStreams, LongStreams and DoubleStreams from int, long and
double arrays or from ranges of elements in the arrays.
a. virtual
b. package
c. overridden
d. overloaded
17.10 Q4: Which of the following statements is false?
a. Stream method sort orders a stream’s elements into ascending
order by default.
b. To create a collection containing a stream pipeline’s results, you can
use Stream method collect (a terminal operation). As the stream
pipeline is processed, method collect performs a mutable reduction
operation that places the results into an object, such as a List, Map or
Set.
c. Method collect with one argument receives an object that
implements interface Collector (package java.util.stream),
which specifies how to perform a mutable reduction.
d. Class Collectors (package java.util.stream) provides static
methods that return predefined Collector implementations.
17.10 Q5: Which of the following statements is true?
a. Stream method filter receives a Predicate and results in a stream
of objects that match the Predicate.
b. Predicate method test returns a boolean indicating whether
the argument satisfies a condition.
c. Interface Predicate also has methods and, negate and or.
d. Each of these statements is true.
17.11 Stream<String> Manipulations