Skip to content
Sharp

Reactive Streams · interview question

Which method in Project Reactor can transform a stream of data items into another stream?

Multiple choiceMediumchapter-19-curatedpremiumreactive-streamsnon-blocking-i-o-event-loops
Choose one answer
Answer and explanation

Correct answer

B. Map()

Why

The map() method is used to transform each item emitted by a Publisher into another item. This method applies a given function to each item and returns a Publisher that emits the transformed items.

Test yourself on Reactive Streams

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

Start free test
All Reactive Streams questions →