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

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

Image may be NSFW.
Clik here to view.

Convert Timestamp String to Long in Java

1. Introduction Working with timеstamps is a common task in Java programming and thеrе arе various scеnarios whеrе we might nееd to convеrt a timеstamp string to a long valuе. In this tutorial, we’ll...

View Article


Image may be NSFW.
Clik here to view.

Time Complexity of Java Collections Sort in Java

1. Introduction In this tutorial, we’ll explore the time complexity of Collections.sort() leveraging the Java Microbenchmark Harness (JMH) and provide examples to illustrate its efficiency. 2. Timе...

View Article

Image may be NSFW.
Clik here to view.

How to Parse XML to HashMap in Java

1. Introduction XML is one of the popular formats for data interchange over the internet. When working with XML data, it’s common to convert it into a more usable format for further processing. In this...

View Article


Image may be NSFW.
Clik here to view.

Difference Between String isEmpty() and isBlank()

1. Introduction Working with Strings in Java is sometimes confusing because we have many ways to do similar things. In this article, we’ll look at how to validate blank and empty Strings using the...

View Article

Image may be NSFW.
Clik here to view.

Asserting Nested Map With JUnit

1. Overview In this tutorial, we’ll go through some of the different ways of asserting the presence of a nested map inside an outer map. Mostly, we’ll discuss the JUnit Jupiter API and the Hamcrest...

View Article

Image may be NSFW.
Clik here to view.

Context-Specific Deserialization Filters in Java 17

1. Introduction In this tutorial, we’ll learn about Java’s new Context-Specific Deserialization Filter functionality. We’ll establish a scenario and then use it in practice to determine what...

View Article
Browsing all 3583 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>