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

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 339

1. Spring and Java >> AdoptOpenJDK to Become Eclipse Adoptium [infoq.com] AdoptOpenJDK is finding a new home in Eclipse Foundation and also, going to have a new and more futuristic name: Eclipse...

View Article


Image may be NSFW.
Clik here to view.

Easy Ways to Write a Java InputStream to an OutputStream

1. Overview In this quick tutorial, we're going to learn how to write a Java InputStream to a Java OutputStream. We'll first use core functionality from Java 8 and Java 9. Then, we'll look at a couple...

View Article


Image may be NSFW.
Clik here to view.

Guide to Apache BookKeeper

1. Overview In this article, we'll present BookKeeper, a service that implements a distributed, fault-tolerant record storage system. 2. What is BookKeeper? BookKeeper was originally developed by Yahoo...

View Article

Image may be NSFW.
Clik here to view.

Java Heap Space Memory with the Runtime API

1. Overview In this article, we'll discuss the APIs provided by Java that can help us understand the several aspects related to Java heap space. This can be useful in understanding the current memory...

View Article

Image may be NSFW.
Clik here to view.

Implementing a Ring Buffer in Java

1. Overview In this tutorial, we'll learn how to implement a Ring Buffer in Java. 2. Ring Buffer Ring Buffer (or Circular Buffer) is a bounded circular data structure that is used for buffering data...

View Article


Image may be NSFW.
Clik here to view.

The Covariant Return Type in Java

1. Overview In this tutorial, we're going to have a closer look at the covariant return type in Java. Before examining covariance from the return type's point of view, let's see what that means. 2....

View Article

Image may be NSFW.
Clik here to view.

Testing a Spring Multipart POST Request

1. Overview In this quick tutorial, we're going to see how to test a multipart POST request in Spring using MockMvc. 2. Maven Dependencies Before we begin, let's add the latest JUnit and Spring test...

View Article

Image may be NSFW.
Clik here to view.

How to Share DTO Across Microservices

1. Overview Microservices have become popular in recent years. One of the essential characteristics of microservices is that they are modular, isolated, and easy to scale. The microservices need to...

View Article


Image may be NSFW.
Clik here to view.

Finding Unused Gradle Dependencies

1. Overview Sometimes during development, we might end up adding more dependencies than we use. In this quick tutorial, we’re going to see how to use the Gradle Nebula Lint plugin to identify and fix...

View Article


Image may be NSFW.
Clik here to view.

Getting MAC addresses in Java

1. Introduction In this tutorial, we'll use Java to get the MAC addresses of a local machine. A MAC address is the unique identifier for a physical network interface card. We'll cover MAC addresses...

View Article

Image may be NSFW.
Clik here to view.

Memory Layout of Objects in Java

1. Overview In this tutorial, we're going to see how the JVM lays out objects and arrays in the heap. First, we'll start with a little bit of theory. Then, we'll explore the different object and array...

View Article

Image may be NSFW.
Clik here to view.

Inject a Map from a YAML File with Spring

1. Overview In this quick tutorial, we're going to take a close look at how to inject a map from a YAML file in Spring Boot. First, we'll start with a little bit of insight on YAML files in Spring...

View Article

Image may be NSFW.
Clik here to view.

Where Is the Array Length Stored in JVM?

1. Overview In this quick tutorial, we're going to see how and where the HotSpot JVM stores the array length. Usually, the memory layout of run-time data areas is not part of the JVM specification and...

View Article


Image may be NSFW.
Clik here to view.

Simple Single Sign-On with Spring Security OAuth2 (legacy stack)

1. Overview In this tutorial, we'll discuss how to implement SSO – Single Sign On – using Spring Security OAuth and Spring Boot. We'll use three separate applications: An Authorization Server – which...

View Article

Image may be NSFW.
Clik here to view.

Java Weekly, Issue 340

1. Spring and Java >> Spring Boot 2.3.0 Focuses on the Cloud [infoq.com] A quick overview of a few new nifty features introduced in Spring Boot 2.3 including simplified containerization using...

View Article


Image may be NSFW.
Clik here to view.

When Does Java Throw UndeclaredThrowableException?

1. Overview In this tutorial, we're going to see what causes Java to throw an instance of the UndeclaredThrowableException exception. First, we'll start with a bit of theory. Then, we'll try to better...

View Article

Image may be NSFW.
Clik here to view.

Mapping Collections with MapStruct

1. Overview In this tutorial, we'll take a look at how to map collections of objects using MapStruct. Since this article assumes already a basic understanding of MapStruct, beginners should check out...

View Article


Image may be NSFW.
Clik here to view.

Print an Integer in Binary Format in Java

1. Overview In this tutorial, we'll look briefly at the different ways of printing an integer in binary format in Java. First, we'll take a conceptual look. And then, we'll learn some built-in Java...

View Article

Image may be NSFW.
Clik here to view.

How to Count the Number of Matches for a Regex?

1. Overview Regular expressions can be used for a variety of text processing tasks, such as word-counting algorithms or validation of text inputs. In this tutorial, we'll take a look at how to use...

View Article

Image may be NSFW.
Clik here to view.

When Does Java Throw the ExceptionInInitializerError?

1. Overview In this quick tutorial, we're going to see what causes Java to throw an instance of the ExceptionInInitializerError exception. We'll start with a little bit of theory. Then we'll see a few...

View Article
Browsing all 4535 articles
Browse latest View live


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