Quantcast
Channel: Baeldung
Browsing all 4535 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Overriding Spring Boot Managed Dependency Versions

1. Introduction Spring Boot is an excellent framework for quickly starting new projects. One of the ways it helps developers quickly create new applications is by defining a set of dependencies...

View Article


Image may be NSFW.
Clik here to view.

What Is the –release Option in the Java 9 Compiler?

1. Overview In this tutorial, we'll learn about Java 9's new command-line option –release. The Java compiler running with the –release N option automatically generates class files compatible with Java...

View Article


Image may be NSFW.
Clik here to view.

Splitting a Java String by Multiple Delimiters

1. Introduction We all know that splitting a string is a very common task. However, we often split using just one delimiter. In this tutorial, we'll discuss in detail different options for splitting a...

View Article

Image may be NSFW.
Clik here to view.

Switching Between Frames Using Selenium WebDriver in Java

1. Introduction Managing frames and iframes is a crucial skill for test automation engineers. Selenium WebDriver allows us to work with both frames and iframes in the same way. In this tutorial, we’ll...

View Article

Image may be NSFW.
Clik here to view.

Why Is sun.misc.Unsafe.park Actually Unsafe?

1. Overview Java provides certain APIs for internal use and discourages unnecessary use in other cases. The JVM developers gave the packages and classes names such as Unsafe, which should warn...

View Article


Image may be NSFW.
Clik here to view.

HashSet toArray() Method in Java

1. Introduction HashSet is one of the common data structures that we can utilize in Java Collеctions. In this tutorial, we’ll dive into the toArray() method of the HashSet class, illustrating how to...

View Article

Image may be NSFW.
Clik here to view.

Convert ResultSet Into Map

1. Introduction Java applications widely use the Java Database Connectivity (JDBC) API to connect and execute queries on a database. ResultSet is a tabular representation of the data extracted by these...

View Article

Image may be NSFW.
Clik here to view.

MongoDB Atlas Search Using the Java Driver and Spring Data

1. Introduction In this tutorial, we’ll learn how to use Atlas Search functionalities using the Java MongoDB driver API. By the end, we’ll have a grasp on creating queries, paginating results, and...

View Article


Image may be NSFW.
Clik here to view.

Sharing Memory Between JVMs

1. Introduction In this tutorial, we’ll show how to share memory between two or more JVMs running on the same machine. This capability enables very fast inter-process communication since we can move...

View Article


Image may be NSFW.
Clik here to view.

Java Weekly, Issue 516

1. Spring and Java >> Table partitioning with Spring and Hibernate [vladmihalcea.com] Splitting a large table into multiple smaller partition tables using Spring and Hibernate — allowing a more...

View Article

Image may be NSFW.
Clik here to view.

Synchronize a Static Variable Among Different Threads

1. Overview In Java, it’s not uncommon to need synchronized access to static variables. In this short tutorial, we’ll look at several ways to synchronize access to static variables among different...

View Article

Image may be NSFW.
Clik here to view.

Create Table Using ASCII in a Console in Java

1. Overview The Java standard library provides the printf() and format() methods to output formatted data to the console. These two methods make it possible to create a table using ASCII characters in...

View Article

Image may be NSFW.
Clik here to view.

Representing Furthest Possible Date in Java

1. Introduction There are scenarios where it’s essential to represent the furthest conceivable date value, particularly when dealing with default or placeholder dates. In this tutorial, we’ll learn how...

View Article


Image may be NSFW.
Clik here to view.

How to Avoid NoSuchElementException in Stream API

1. Overview In this short tutorial, we’ll explain how to avoid NoSuchElementException when working with the Stream API. First, we’re going to explain the main cause of the exception. Then, we’ll...

View Article

Image may be NSFW.
Clik here to view.

Ensuring Message Ordering in Kafka: Strategies and Configurations

1. Overview In this article, we will explore the challenges and solutions surrounding message ordering in Apache Kafka. Processing messages in the correct order is crucial for maintaining data...

View Article


Image may be NSFW.
Clik here to view.

Executable Comments in Java

1. Overview Comments can be useful when we need additional notes in our code. They can help us make our code more understandable. Additionally, they can be especially useful in methods that perform...

View Article

Image may be NSFW.
Clik here to view.

Differences Between * and ? in Cron Expressions

1. Overview With a cron scheduler, we can automate repetitive tasks we’d otherwise need to handle manually. Additionally, the cron expression allows us to schedule jobs executing at the desired date...

View Article


Image may be NSFW.
Clik here to view.

Overriding Spring Beans in Integration Test

1. Overview We might want to override some of our application’s beans in Spring integration testing. Typically, this can be done using Spring Beans specifically defined for testing. However, by...

View Article

Image may be NSFW.
Clik here to view.

Working with Exceptions in Java CompletableFuture

1. Introduction Java 8 has introduced a new abstraction based on Future to run asynchronous tasks – CompletableFuture class. It basically came to overcome the issues of the old Future API. In this...

View Article

Image may be NSFW.
Clik here to view.

Manage Kafka Consumer Groups

1. Introduction Consumer groups help to create more scalable Kafka applications by allowing more than one consumer to read from the same topic. In this tutorial, we’ll understand consumer groups and...

View Article
Browsing all 4535 articles
Browse latest View live