Skip to content
Sharp

Reactive Streams · interview question

What does the method subscribe() do in the context of a reactive stream?

Multiple choiceEasychapter-19-curatedpremiumreactive-streamspublisher-and-subscriber
Choose one answer
Answer and explanation

Correct answer

D. Starts the flow of data from Publisher to Subscriber

Why

The subscribe() method is called to start the flow of data from the Publisher to the Subscriber. This is when the reactive stream becomes active and begins processing and emitting data.

Test yourself on Reactive Streams

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

Start free test
All Reactive Streams questions →