← Quiz: Java 8 Lambdas and Streams: all 10 questions
Quiz: Java 8 Lambdas and Streams · Question 3 of 10
When does a stream pipeline actually run?
When does a stream pipeline actually run?
- A.When stream() is called
- B.At each filter call
- C.When a terminal operation like collect or count is called
- D.Never
Answer & explanation
Correct answer: When a terminal operation like collect or count is called
Intermediate operations are lazy; the terminal operation triggers processing.
Can you get the rest right without peeking?
Take the timed Quiz: Java 8 Lambdas and Streams quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →