Skip to content
Sharp

Reactive Streams · interview question

In which scenario is using Mono preferred over Flux in Project Reactor?

Multiple choiceHardchapter-19-curatedpremiumreactive-streamsbackpressure-strategies
Choose one answer
Answer and explanation

Correct answer

A. When expecting a single item or no item

Why

Mono is preferred when you expect a single item or no item at all, as it represents a stream with zero or one element, unlike Flux which is used for multiple elements.

Test yourself on Reactive Streams

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

Start free test
All Reactive Streams questions →