Learn about the Java “java.net.SocketException: “Broken pipe” error, understand the leading cause of the exception, and see how to fix it.
Search Results for: java.net
Handling java.net.ConnectException
Learn how to handle java.net.ConnectException
java.net.UnknownHostException: Invalid Hostname for Server
Learn what causes UnknownHostException, how to prevent it, and how to handle it.
The Tomcat java.net.BindException: Address Already in Use Error in Java
Find out what causes the common java.net.BindingException Error: Address already in Use and how to handle it.
Create and Run Apache JMeter Test Scripts via Java Program
Learn how to create and execute Apache JMeter test scripts programmatically using the JMeter Java API.
Internet Address Resolution SPI in Java
Learn how Internet Address Resolution works in Java using the InetAddress API.
Obtaining the Last Path Segment of a URI in Java
Explore multiple Java methods, including the URI class, Path class, FilenameUtils, and regular expressions, providing diverse approaches to extract the last path segment from a URI.
Install OpenJDK on Windows
In this article, we look at various approaches to installing OpenJDK on a Windows environment.
Creating a Custom URL Connection
Explore the process of creating a custom URL connection in Java to overcome the limitations associated with the default URLConnection class.
Translating Space Characters in URLEncoder
Learn the fundamentals of URL encoding in Java focusing on the URLEncoder class for encoding spaces into URL-safe formats.
Normalize a URL in Java
Explore different techniques to normalize a URL in Java.
Enable Java SSL Debug Logging
Learn how to enable SSL Debug Logging in Java to enhance visibility into your application’s SSL-related activities.
New Features in Java 20
Explore some of the new features and changes introduced as part of the incremental Java 20 release.
Setup Http Patch Request With OpenFeign
Spring Cloud OpenFeign makes it easy to write a client to REST APIs. We can use this for PATCH requests. We look at how this works and how to set it up to avoid common pitfalls.
The Vector API in Java 19
Explore the Vector API, its associated terminologies, and how to leverage it.
Mock a URL Connection in Java
Explore several ways of mocking a URL connection to write stand-alone unit tests that don’t rely on external services.
Run JMeter .jmx File From the Command Line and Configure the Report File
Learn how to run JMeter JMX files from the command line and configure the report file.
Java Weekly, Issue 489
Unnamed methods in Java, Hibernate 6 migration, async-profiler, generative AI and jobs, and monoliths are not dinosaurs!
Guide to Java Project Panama
Project Panama aims to ease the interaction between Java and foreign (non-Java) APIs, i.e., native code written in C, C++, etc.
javax vs. java Package
Explore examples of both java and javax packages and understand the key differences between them.