Do you need a quick overview of all Java versions? Please check out the friendly and helpful Java Versions Cheat Sheet! It is developed and actively maintained by me.
Inheritance and correlated polymorphism are among the most important concepts in OOP languages like Java, Kotlin, C#, and others. In this article, I will explain two typical cases of wrong inheritance usage that anyone should not imitate.
When developing Spring Boot applications, I often need to check if property values are correctly received from configuration files, environment variables, or other sources. There are various ways to perform this task. This article will present my solution for dumping the Spring Environment using a simple application listener.
On my blog, I generally write articles on Java programming topics that already exist. This time, however, I want to write about a new hypothetical mapStream method that currently doesn’t exist in the Java Stream API but could be interesting to add.
In this article, I will discuss iterating two collections simultaneously. This is not a very recurring topic in Java, but sometimes it may be necessary. The main goal of this article, in particular, is to show how to create some good code designs for greater code reuse.
I worked several times on Spring Boot applications that use Lombok, a famous code-generation tool based on annotation processing. In this article, I will discuss using Spring’s @Value annotation in a “component” class annotated with Lombok.
In this relatively short article, I will discuss an intriguing and noteworthy topic about collections in Java: why some standard Java collections cannot be heterogeneous. In other words, why they cannot contain objects of different types.
In Spring Boot applications, it’s not uncommon to configure a value representing a size in bytes, for example, a buffer size, a file size limit, etc. In this article, I will describe how to use the DataSize class provided by Spring Framework to configure and handle data size values.
In the previous article Spring Boot: configuring the Actuator “info” endpoint, I explained some fundamental concepts about configuring and using the “info” endpoint provided by Spring Boot Actuator. In this article, it’s time to see how to implement custom info contributors.
Logback is a known Java logging library and an alternative to the better-known log4j library. I already wrote about an “advanced” feature of logback in a previous article. In this article, I will provide a practical introduction so you can start quickly and easily with logback.