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

Image may be NSFW.
Clik here to view.

Prim’s Algorithm

1. Introduction In this tutorial, we first learn what minimum spanning trees are. Afterward, we'll use Prim's algorithm to find one. 2. Minimum Spanning Tree A minimum spanning tree (MST) is a...

View Article


Guide to Monitoring Disk Usage on Linux

1. Introduction In this tutorial, we'll explore several Linux tools to monitor disk space. 2. Filesystems and Mounts First, it's important to understand the difference between filesystems and mounts....

View Article


Check if Two Strings are Anagrams in Java

1. Overview According to Wikipedia, an anagram is a word or phrase formed by rearranging the letters of a different word or phrase. We can generalize this in string processing by saying that an anagram...

View Article

Clean Coding in Java

1. Overview In this tutorial, we'll go through clean coding principles. We'll also understand why clean code is important and how to achieve that in Java. Further, we'll see if there are any tools...

View Article

Image may be NSFW.
Clik here to view.

How to Create a Maven Plugin

1. Introduction Maven offers a great variety of plugins to help us with the build of our project. However, we may find cases where these plugins are not enough and we have to develop our own. Luckily,...

View Article


Image may be NSFW.
Clik here to view.

Overview of Combinatorial Problems in Java

1. Overview In this tutorial, we'll learn how to solve a few common combinatorial problems. They are most likely not very useful in an everyday job; however, they're interesting from the algorithmic...

View Article

Adding Shutdown Hooks for JVM Applications

1. Overview It's typically easy to start-up a service. However, sometimes we need to have a plan for gracefully shutting one down. In this tutorial, we're going to take a look at different ways a JVM...

View Article

Runtime.getRuntime().halt() vs System.exit() in Java

1. Overview In this tutorial, we'll look into System.exit(), Runtime.getRuntime().halt(), and how these two methods compare with each other. 2. System.exit() The System.exit() method stops the running...

View Article


Error Handling with Spring AMQP

1. Introduction Asynchronous messaging is a type of loosely-coupled distributed communication that is becoming increasingly popular for implementing event-driven architectures. Fortunately, the Spring...

View Article


Image may be NSFW.
Clik here to view.

Organizing Layers Using Hexagonal Architecture, DDD, and Spring

1. Overview In this tutorial, we'll implement a Spring application using DDD. Additionally, we'll organize layers with the help of Hexagonal Architecture. In the end, our application will expose a...

View Article

Java Weekly, Issue 311

1. Spring and Java >> State of Valhalla [openjdk.java.net] A well-worth reading update to Project Valhalla and the future of Java. >> Java Microservices: A Practical Guide [marcobehler.com]...

View Article

Cucumber Background

1. Overview In this short tutorial, we're going to learn about Cucumber Backgrounds, which is a feature that allows us to execute some sentences for each test of a Cucumber Feature. 2. Cucumber...

View Article

Java Default Parameters Using Method Overloading

1. Overview In this short tutorial, we'll demonstrate the use of method overloading to simulate default parameters in Java. Here, we say simulate because unlike certain other OOP languages (like C++...

View Article


Object-Oriented-Programming Concepts in Java

1. Overview In this article, we'll look into Object-Oriented Programming (OOP) concepts in Java. We'll discuss classes, objects, abstraction, encapsulation, inheritance, and polymorphism. 2. Classes...

View Article

Image may be NSFW.
Clik here to view.

Various Logging Levels in Hibernate

1. Overview Since Hibernate handles the interaction with the database for us, we're able to develop database-related code quickly. But, this can make debugging database-related failures difficult....

View Article


Using Maven Behind a Proxy

1. Introduction In this tutorial, we're going configure Maven to work behind a proxy – a common situation in environments where we don't connect directly to the internet. In our example, our proxy is...

View Article

Image may be NSFW.
Clik here to view.

Maximum Subarray Problem

1. Overview The maximum subarray problem is a task to find the series of contiguous elements with the maximum sum in any given array. For instance, in the below array, the highlighted subarray has the...

View Article


Image may be NSFW.
Clik here to view.

How to Print a Binary Tree Diagram

1. Introduction Printing is a very common visualization technique for data structures. It can be tricky when it comes to trees, though, due to their hierarchical nature. In this tutorial, we'll learn...

View Article

Image may be NSFW.
Clik here to view.

How to Merge Two Sorted Arrays

1. Introduction In this tutorial, we're going to learn how to merge two sorted arrays into a single sorted array. 2. Problem Let's understand the problem. We have two sorted arrays and we would like to...

View Article

An Introduction to Podman

1. Introduction In this tutorial, we'll look at Podman (short for “Pod Manager”), its features and usage. 2. Podman Podman is an open-source container management tool for developing, managing and...

View Article
Browsing all 3522 articles
Browse latest View live


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