Skip to content
Sharp

HTTP JSON APIs · interview question

In the context of Java's HttpClient, which method allows you to perform an asynchronous HTTP request?

Multiple choiceMediumchapter-11-curatedpremiumhttp-json-apisapi-versioning
Choose one answer
Answer and explanation

Correct answer

B. SendAsync()

Why

The sendAsync() method in Java's HttpClient is used to perform asynchronous HTTP requests, allowing other operations to continue while waiting for the response.

Test yourself on HTTP JSON APIs

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

Start free test
All HTTP JSON APIs questions →