Question: Which statement about a source in a Stream is true? A. The source is mandatory in a stream pipeline. B. The source is only allowed
Which statement about a source in a Stream is true?
A. The source is mandatory in a stream pipeline.
B. The source is only allowed to return primitives.
C. The source must be retrieved by calling the stream() method.
D. The source must return a finite number of elements.
E. None of the above.
Step by Step Solution
3.28 Rating (163 Votes )
There are 3 Steps involved in it
The correct answer is A The source is mandatory in a stream pipeline In Java a stream pipeline is a ... View full answer
Get step-by-step solutions from verified subject matter experts
