Loading…
Loading…
Ten exam-style questions on stream pipeline parts, lazy evaluation, single use, finite sources such as Stream.of, ofNullable and Arrays.stream, infinite sources generate and iterate, and which terminal operations finish on infinite streams, with explanations.
Practice questions for the article Java Streams: Pipeline Flow and Creating Finite and Infinite Streams.
For each pipeline, first look for the terminal operation. Without one, nothing runs. Aim for at least 8 out of 10.
Quiz path: step 70. Take the quizzes in this order, after reading each article.
Previous quiz: Optional (OCP 21)
Next quiz: Stream Terminal 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.