Loading…
Loading…
Ten exam-style questions on Collectors: joining, counting and averaging return types, toMap duplicate keys and merge functions, groupingBy with downstream collectors and map factories, partitioningBy, mapping, teeing, Spliterator and late binding of stream sources, with explanations.
Practice questions for the article Java Collectors: joining, toMap, groupingBy, partitioningBy and teeing.
Read nested collectors from the outside in, and check every declared return type. Aim for at least 8 out of 10.
Quiz path: step 74. Take the quizzes in this order, after reading each article.
Previous quiz: Primitive Streams (OCP 21)
Next quiz: Chapter 10 Review: 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.