Skip to content
Sharp

Networking · interview question

Which protocol does Java's HttpClient use by default?

Multiple choiceEasychapter-11-curatedpremiumnetworkingsocket-programming
Choose one answer
Answer and explanation

Correct answer

B. HTTP/1.1

Why

Java's HttpClient uses HTTP/1.1 by default, which is the standard for making HTTP requests, though it can also be configured to use HTTP/2.

Test yourself on Networking

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

Start free test
All Networking questions →