W3
Teacher
Explore
Browse by field
Artificial Intelligence
Accounting & Finance
Information Technology
Show all fields
Interview Q&A
All Interview Questions
Beginner
Intermediate
Advanced
Practice
MCQs
Quizzes
Mock Interviews
About
Light
Dark
Auto
Sign in
Get Started
Search interview questions
Search
19 questions for “Java Networking & HTTP Client”
Found in 1 field. Select a question to see its full answer.
Matching topics
Java
Java
Networking
&
HTTP
Client
15
Java
Java
Date & Time API (
java
.time)
1
Java
Java
Fundamentals: Syntax, Data Types & Operators
1
Information Technology
19 questions in 1 technology
#
Question
Technology
Topic
Level
1
What is the modern
java
.net.
http
.
Http
Client
(introduced in
Java
11), and how does it improve on the older
Http
URLConnection for making
HTTP
requests?
Java › Java Networking & HTTP Client
Java
Java
Networking
&
HTTP
Client
Beginner
2
What is the
java
.net.Socket and ServerSocket class pair, and how would you implement a basic TCP
client
-server communication using them at a lower level than
Http
Client
?
Java › Java Networking & HTTP Client
Java
Java
Networking
&
HTTP
Client
Intermediate
3
How would you implement a WebSocket
client
using
java
.net.
http
.WebSocket for real-time, bidirectional communication, and how does its event-driven Listener interface work?
Java › Java Networking & HTTP Client
Java
Java
Networking
&
HTTP
Client
Advanced
4
How would you configure
Http
Client
with custom timeouts, a proxy, and connection pooling behavior, and what's the difference between a connection timeout and a request/response timeout?
Java › Java Networking & HTTP Client
Java
Java
Networking
&
HTTP
Client
Intermediate
5
How would you implement retry logic with exponential backoff for
HTTP
requests made via
Http
Client
, given the
client
doesn't provide built-in retry support natively?
Java › Java Networking & HTTP Client
Java
Java
Networking
&
HTTP
Client
Advanced
6
How does
Http
Client
handle automatic following of
HTTP
redirects (3xx responses), and how would you configure or disable this behavior?
Java › Java Networking & HTTP Client
Java
Java
Networking
&
HTTP
Client
Intermediate
7
How would you configure
Http
Client
to trust a custom or self-signed SSL/TLS certificate for testing against an internal service, and what security risks does disabling certificate validation entirely introduce?
Java › Java Networking & HTTP Client
Java
Java
Networking
&
HTTP
Client
Advanced
8
How would you make an asynchronous, non-blocking
HTTP
request using
Http
Client
's sendAsync() method, and how does the returned CompletableFuture integrate with the rest of an asynchronous pipeline?
Java › Java Networking & HTTP Client
Java
Java
Networking
&
HTTP
Client
Intermediate
9
How would you send a POST request with a JSON request body using
Http
Client
, and correctly parse a JSON response using a library like Jackson?
Java › Java Networking & HTTP Client
Java
Java
Networking
&
HTTP
Client
Intermediate
10
How would you send URL-encoded form data (application/x-www-form-urlencoded) using
Http
Client
, as opposed to a JSON request body?
Java › Java Networking & HTTP Client
Java
Java
Networking
&
HTTP
Client
Intermediate
Show all 19 questions in Information Technology