Skip to content
Sharp

Networking · interview question

Why do teams use HttpClient's sendAsync method for network requests in production code?

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

Correct answer

D. It allows non-blocking operations, freeing up the calling thread.

Why

The sendAsync method allows the calling thread to continue executing other tasks, as the network request is handled asynchronously. This is useful for improving application responsiveness, especially when dealing with latency-prone network operations.

Test yourself on Networking

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

Start free test
All Networking questions →