Loading…
Loading…
Ten exam-style questions on count, min and max, findFirst and findAny, the match methods and empty streams, forEach, the three reduce signatures, collect with supplier, accumulator and combiner, toList and toArray, with explanations.
Practice questions for the article Java Stream Terminal Operations: count, min, max, find, match, forEach, reduce and collect.
Pay attention to each method's return type. The exam often hides the error in an assignment. Aim for at least 8 out of 10.
Quiz path: step 71. Take the quizzes in this order, after reading each article.
Previous quiz: Stream Pipelines and Creating Streams (OCP 21)
Next quiz: Stream Intermediate Operations (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.