R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which of these is true about `parallelStream()`?

  • (A) It is slower than a sequential stream
  • (B) It uses a single thread
  • (C) It is useful for large collections and multi-core systems
  • (D) It always throws an exception
  • Correct Answer - Option(C)
  • Views: 8
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`parallelStream()` can improve performance on large data sets using multiple threads.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.