Java OCA OCP Practice Question 1599

Question

In a stream pipeline, which can return a value other than a Stream?

  • A. Source
  • B. Intermediate operation
  • C. Terminal operation
  • D. None of the above


C.

Note

The source and any intermediate operations are chained and eventually passed to the terminal operation.

The terminal operation is where a non-stream result is generated, making Option C correct.




PreviousNext

Related