Loading…
Loading…
Ten exam-style questions on IntStream, LongStream and DoubleStream, range versus rangeClosed, sum and average return types, primitive optionals, mapping methods and their functional interfaces, boxed, and summaryStatistics on empty streams, with explanations.
Practice questions for the article Java Primitive Streams: IntStream, LongStream, DoubleStream and Summary Statistics.
Watch the return types: plain numbers, OptionalDouble, OptionalInt and the statistics classes all show up here. Aim for at least 8 out of 10.
Quiz path: step 73. Take the quizzes in this order, after reading each article.
Previous 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.