Skip to content
Sharp

Reactive Streams · interview question

Which Project Reactor operator would you use to transform elements within a stream without altering the sequence flow?

Multiple choiceMediumchapter-19-curatedpremiumreactive-streamsbackpressure-strategies
java
Flux.just(1, 2, 3).map(i -> i * i);
Choose one answer
Answer and explanation

Correct answer

C. Map

Why

The map operator transforms each element in the stream but maintains the sequence. It is useful for applying functions to elements without altering the stream's structure.

Test yourself on Reactive Streams

A free test with instant, explained results. No account needed.

Start free test
All Reactive Streams questions →