R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which of the following creates a parallel stream?

  • (A) stream.parallel()
  • (B) parallelStream()
  • (C) stream.parallelStream()
  • (D) Stream.parallel()
  • Correct Answer - Option(B)
  • Views: 18
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma

`parallelStream()` creates a stream that is capable of parallel execution.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.