What is the difference between intermediate and terminal operations?
S.no | Intermediate | Terminal |
---|---|---|
1. | The intermediate operation produces stream pipelining | Terminal operation terminate the pipeline |
2. | Intermediate operations can be chained multiple times on a stream | Terminal operations cannot be chained various times. |
3. | Intermediate operations cannot be evaluated independently; it needs a terminal operation for evaluation. | Terminal Operations can be evaluated independently. |
BY Best Interview Question ON 25 Apr 2020