PRACTICE / UNDERSTAND / REPEAT

Java: Streams

Practice streams with self-contained questions. Check your answer, then use the explanation to understand the reasoning.

17 questionsAnswers explainedFree · no login
Question 1 of 17
Streams · MCQQuestion link ↗

Which stream operation transforms each element?

Choose one answer
Answer & explanation

Answer: map

`map` transforms elements; `filter` keeps matching elements; `forEach` performs an action.