Skip to content
Sharp

Networking · interview question

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

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

Correct answer

D. It allows the calling thread to continue executing other tasks.

Why

The sendAsync method is non-blocking, allowing the calling thread to perform other tasks while waiting for the HTTP request to complete, making it suitable for scalable applications.

Test yourself on Networking

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

Start free test
All Networking questions →