Skip to content
Sharp

Reactive Streams · interview question

Which method would you use on a Flux to handle errors gracefully?

Multiple choiceEasychapter-19-curatedpremiumreactive-streamswebflux-vs-virtual-threads
Choose one answer
Answer and explanation

Correct answer

A. OnErrorResume

Why

The 'onErrorResume' method allows you to provide an alternative Flux or Mono when an error occurs, enabling graceful error recovery in a reactive stream.

Test yourself on Reactive Streams

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

Start free test
All Reactive Streams questions →