Question: Which statements about the findAny() method applied to a stream are correct? (Choose three.). A. It always returns the first element on an ordered serial
Which statements about the findAny() method applied to a stream are correct? (Choose three.).
A. It always returns the first element on an ordered serial stream.
B. It may return any element on an ordered serial stream.
C. It always returns the first element on an unordered stream.
D. It may return any element on an unordered stream.
E. It always returns the first element on an ordered parallel stream.
F. It may return any element on an ordered parallel stream.
Step by Step Solution
There are 3 Steps involved in it
The correct answers are B It may return any element on an ordered serial stream The findAny method d... View full answer
Get step-by-step solutions from verified subject matter experts
