Java OCA OCP Practice Question 1613

Question

Which operation can occur more than once in a stream pipeline?

  • Source
  • Intermediate
  • Terminal

Option

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


B.

Note

A source and the terminal operation are required parts of a stream pipeline and must occur exactly once.

The intermediate operation is optional.

It can appear zero or more times.

Since more than once falls within zero or more, Option B is correct.




PreviousNext

Related