Skip to content
Sharp

Concurrency basics · interview question

Why might you choose CompletableFuture over traditional Future in Java?

Multiple choiceMediumchapter-15-curatedpremiumconcurrencycompletablefuture
Choose one answer
Answer and explanation

Correct answer

C. CompletableFuture supports non-blocking asynchronous programming.

Why

CompletableFuture supports non-blocking asynchronous programming, allowing you to chain multiple computations and handle exceptions fluently, which is not possible with traditional Future.

Test yourself on Concurrency basics

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

Start free test
All Concurrency basics questions →