About Question enthuware.ocpjp.v8.2.1856 :
Posted: Mon Mar 21, 2016 8:38 am
As per https://docs.oracle.com/javase/tutorial ... s/streams/:
A pipeline contains the following components:
A source: This could be a collection, an array, a generator function, or an I/O channel. In this example, the source is the collection roster.
Zero or more intermediate operations: An intermediate operation, such as filter, produces a new stream.
A terminal operation.
1. a source
2. an intermediate operation
3. a terminal operation
4. a reduction operation
5. a method reference
6. a lambda expression
You had to select 2 options. Why only two options?
So , 1 and 3. But why the operation number 2 is wrong?
A pipeline contains the following components:
A source: This could be a collection, an array, a generator function, or an I/O channel. In this example, the source is the collection roster.
Zero or more intermediate operations: An intermediate operation, such as filter, produces a new stream.
A terminal operation.
1. a source
2. an intermediate operation
3. a terminal operation
4. a reduction operation
5. a method reference
6. a lambda expression
You had to select 2 options. Why only two options?
So , 1 and 3. But why the operation number 2 is wrong?