Skip to content
Sharp

Networking · interview question

Which Java class is used to configure timeouts in the HttpClient?

Multiple choiceMediumchapter-11-curatedpremiumnetworkingtimeouts-and-retries
Choose one answer
Answer and explanation

Correct answer

A. HttpClient.Builder

Why

The HttpClient.Builder class is used to configure various settings for an HttpClient, including connection and request timeouts. It provides a fluent API to set these parameters before building the client.

Test yourself on Networking

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

Start free test
All Networking questions →