Skip to content
Sharp

Networking · interview question

Why does calling join on a CompletableFuture change runtime behavior?

Multiple choiceMediumchapter-11-curatedpremiumnetworkingasynchronous-http
Choose one answer
Answer and explanation

Correct answer

B. It blocks until the future completes and returns the result.

Why

Calling join on a CompletableFuture blocks the current thread until the future completes, then returns the result or throws an exception if the computation failed, making it synchronous in nature.

Test yourself on Networking

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

Start free test
All Networking questions →