If you’re encountering the “handshake_failure through SSLHandshakeException” error, it means there is an issue with the SSL/TLS handshake between the client and server. This can be caused by a variety of reasons such as outdated SSL/TLS protocol version, missing SSL/TLS certificates, or incorrect SSL/TLS configurations.
Java
8 Things you can do with JBang but you can’t with Shell
Using Java as scripting language has become a popular option in the last few years thanks to the JShell tool. In this article we will learn how the JBang scripting tool can take your Java scripting power at another level.
JBang: Create Java scripts like a pro
JBang is a scripting tool which allows to run Java application with minimal set up, without the need of having a project configuration. In this tutorial we will learn how to use it to run a simple Java application and then we will be looking at a more complex example, which starts a Quarkus application.
Two ways to read a File in a String with Java
Do you need to read a File into a String in Java ? This article will show two simple ways to achieve it. By the end of it, you will also learn the differences between each solution. Solution #1 Use Files.readAllBytes The first solution, which reads a file into an array of Bytes, uses the … Read more
How to solve the error “invalid target release: 17”
This article shows how to fix the compilation issue that you can hit when the target Java release specified in your Maven configuration does not match the version of Java installed on your system. For example, your environment uses Java 11 but your Maven configuration requires Java 17.
How to list Maven local artifacts using JBang
Listing the available artifacts in your Maven local repository generally requires a Maven project. In this article we will show how to create a simple JBang script to list all dependencies for an artifact in your local Maven repository.
Modern Java interview questions (2023)
Are you going for a Java Interview ? This article contains a list of Interview Questions which are covering modern aspects of Java, such as Functional programming, Stream API, new IO API and much more.
Solving java.lang.OutOfMemoryError: java heap space
This article goes through the most common Java OutOfMemory Error, which happens when you saturate the Java Heap Memory. Within this article we will show how to fix this error depending if you are an application user or an application developer.
How to capture a Thread dump in Java
In this tutorial, we will learn how to capture a thread dump in Java using different methods depending on the operating system and the environment in which the Java application is running.
Top 5 solutions for Java Http Clients
There are several ways to create an HTTP client in Java. In this tutorial, we will explore five different options for creating an HTTP client in Java, ranging from low-level libraries to high-level frameworks.