🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.When stream() is called
  2. B.At each filter call
  3. C.When a terminal operation like collect or count is called
  4. 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 →