Skip to content
Sharp

Networking · interview question

Why do teams use HttpClient over older HTTP handling methods in Java in production code?

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

Correct answer

C. Support for HTTP/2 and WebSocket

Why

HttpClient provides support for modern web protocols like HTTP/2 and WebSocket, enabling more efficient web communication compared to older methods which may not support these protocols.

Test yourself on Networking

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

Start free test
All Networking questions →