Which method is used to execute stream operations in parallel?

  1. parallel()
  2. multiStream()
  3. split()
  4. asParallel()
Correct answer parallel()

Explanation

`parallel()` or `parallelStream()` is used to run stream operations in parallel.

Update: Admin added a tag on this question

Topics

By Admin · · 25 views