Loading…
Loading…
Ten exam-style questions on parallel streams: creating them, forEach versus forEachOrdered, findAny versus findFirst, reduce identity and associativity, three-argument collect, concurrent collectors and stateful lambdas, with explanations.
Practice questions for the article Java Parallel Streams: Parallel Decomposition, Reductions and Ordering.
When output can vary from run to run, look for the options that are possible. Aim for at least 8 out of 10.
Quiz path: step 95. Take the quizzes in this order, after reading each article.
Previous quiz: Concurrent Collections, Deadlock, Starvation and Livelock (OCP 21)
Next quiz: Chapter 13 Review: Concurrency (OCP 21)
10 questions · pass at 68%
Check your understanding; you see the answers and explanations after submitting.
Discussion
Sign in to ask a question or share what you learned.