A

Admin • 828.03K Points
Coach

Q. What is the difference between a parallel stream and a sequential stream?

  • (A) A parallel stream is more efficient than a sequential stream.
  • (B) A parallel stream processes elements in parallel, while a sequential stream processes elements sequentially.
  • (C) A parallel stream is always unordered, while a sequential stream is always ordered.
  • (D) A parallel stream is always lazy, while a sequential stream is always eager.
  • Correct Answer - Option(B)
  • Views: 14
  • Filed under category Java
  • Hashtags:

Explanation by: Admin
Parallel streams can offer improved performance for certain types of processing, but they may also introduce additional overhead and synchronization issues.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.