Loading…
Loading…
Ten exam-style questions on filter, distinct, limit and skip, map and flatMap, concat, sorted and the Comparator::reverseOrder trap, peek, takeWhile and dropWhile, operation order on infinite streams, and checked exceptions in lambdas, with explanations.
Practice questions for the article Java Stream Intermediate Operations: filter, map, flatMap, sorted, distinct, limit and peek.
Trace one element at a time through the pipeline, and remember that sorted waits for everything. Aim for at least 8 out of 10.
Quiz path: step 72. Take the quizzes in this order, after reading each article.
Previous quiz: Stream Terminal Operations (OCP 21)
Next quiz: Primitive Streams (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.