Skip to content
Sharp

Networking · interview question

What does the HttpClient.newHttpClient() method do?

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

Correct answer

B. Creates a new default HttpClient instance.

Why

The HttpClient.newHttpClient() method creates a new instance of HttpClient with default settings, allowing you to send HTTP requests to servers.

Test yourself on Networking

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

Start free test
All Networking questions →