Which of these is an intermediate operation?

  1. collect()
  2. reduce()
  3. map()
  4. count()
Correct answer map()

Explanation

`map()` is an intermediate operation; it transforms elements and returns a new Stream.

Update: Admin added a tag on this question

Topics

By Admin · · 32 views