STREAM INTERMEDIATE OPERATIONS
- Stream Intermediate operations are not evaluated until we chain it with Stream Terminal Operation.
- The output of Intermediate Operations is another Stream.
- Intermediate Operations are evaluated Lazily.
- We can chain any number of Stream Intermediate Operations.
- We can use any number of Stream Intermediate Operations per Statement.
STREAM TERMINAL OPERATIONS
1. Stream Terminal Operations are evaluated on it’s own. No need other operations help.
2. The output of Intermediate Operations is Not a Stream. Something else other than a Stream.
3. Terminal Operations are evaluated Eagerly.
4. We can NOT chain Stream Terminal Operations.
5. We can use only one Stream Terminal Operation per Statement.