Skip to content
Sharp

Networking · interview question

How would you explain a key characteristic of the java.net.http.HttpClient when handling asynchronous requests in an interview?

Multiple choiceMediumchapter-11-curatedpremiumnetworkinghttpclient-basics
Choose one answer
Answer and explanation

Correct answer

D. It uses threads from a global thread pool.

Why

HttpClient handles asynchronous requests using a shared thread pool, allowing multiple requests to be processed without blocking the main thread. This makes it efficient for applications needing high concurrency.

Test yourself on Networking

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

Start free test
All Networking questions →