Data Modeling with Apache Kafka
1. Overview In this tutorial, we'll venture into the realm of data modeling for event-driven architecture using Apache Kafka. 2. Setup A Kafka cluster consists of multiple Kafka brokers that are...
View ArticleJava 12 New Features
1. Introduction In this tutorial, we'll have a quick, high-level overview of some of the new features that came with Java 12. A full list of all new features is available in the official documentation....
View ArticleLearn JPA & Hibernate
Object-Relational Mapping (ORM) is the process of converting Java objects to database tables. In other words, this allows us to interact with a relational database without any SQL. The Java...
View ArticleDifference Between JSF, Servlet, and JSP
1. Introduction When developing any application, the selection of the right technology plays a significant role. However, the decision isn't always straightforward. In this article, we'll provide a...
View ArticleJava File Separator vs File Path Separator
1. Overview Different operating systems use different characters as file and path separators. When our application has to run on multiple platforms, we need to handle these correctly. Java helps us to...
View ArticleJava Weekly, Issue 367
1. Spring and Java >> AdoptOpenJDK Welcomes Dragonwell [infoq.com] Dragonwell joins AdoptOpenJDK – an OpenJDK distribution supporting coroutines and pre-warmup! >> Pattern Matching for...
View ArticleJackson: java.util.LinkedHashMap cannot be cast to X
1. Overview Jackson is a widely used Java library, which allows us to serialize/deserialize JSON or XML conveniently. Sometimes, we may encounter “java.lang.ClassCastException: java.util.LinkedHashMap...
View ArticleBinary Semaphore vs Reentrant Lock
1. Overview In this tutorial, we'll explore binary semaphores and reentrant locks. Also, we'll compare them against each other to see which one is best suited in common situations. 2. What Is a Binary...
View ArticleDifference Between REST and HTTP
1. Introduction Often times the terms REST and HTTP are used interchangeably. In this article, we'll look at what each term really means and why they are two different things. 2. What is REST? REST...
View ArticleUsing a Byte Array as Map Key in Java
1. Introduction In this tutorial, we'll learn how to use a byte array as a key in HashMap. Because of how HashMap works, we, unfortunately, can't do that directly. We'll investigate why is that and...
View ArticleDifference Between REST and HTTP
1. Introduction Often times the terms REST and HTTP are used interchangeably. In this article, we'll look at what each term really means and why they are two different things. 2. What is REST? REST...
View ArticleCharacter#isAlphabetic vs. Character#isLetter
1. Overview In this tutorial, we'll start by briefly going through some general category types for every defined Unicode code point or character range to understand the difference between letters and...
View ArticleUsing a Byte Array as Map Key in Java
1. Introduction In this tutorial, we'll learn how to use a byte array as a key in HashMap. Because of how HashMap works, we, unfortunately, can't do that directly. We'll investigate why is that and...
View ArticleDetermine if an Integer’s Square Root Is an Integer in Java
1. Overview A perfect square is a number that can be expressed as the product of two equal integers. In this article, we'll discover multiple ways to determine if an integer is a perfect square in...
View ArticleJava Weekly, Issue 368
1. Spring and Java >> Pattern Matching in the Java Object Model [github.com] Java language architects on how pattern matching may get integrated into the Java language! >> Creating...
View ArticleJava Weekly, Issue 366
1. Spring and Java >> Do Loom’s Claims Stack Up? Part 1: Millions of Threads? [webtide.com] Gym membership and millions of loom virtual threads – evaluating the effect of GC and deep stacks on...
View ArticleDifference Between spring-boot:repackage and Maven package
1. Overview Apache Maven is a widely used project dependency management tool and project building tool. Over the last few years, Spring Boot has become a quite popular framework to build applications....
View ArticleDifference Between REST and HTTP
1. Introduction Often times the terms REST and HTTP are used interchangeably. In this article, we'll look at what each term really means and why they are two different things. 2. What is REST? REST...
View ArticleUsing a Byte Array as Map Key in Java
1. Introduction In this tutorial, we'll learn how to use a byte array as a key in HashMap. Because of how HashMap works, we, unfortunately, can't do that directly. We'll investigate why is that and...
View ArticleDetermine if an Integer’s Square Root Is an Integer in Java
1. Overview A perfect square is a number that can be expressed as the product of two equal integers. In this article, we'll discover multiple ways to determine if an integer is a perfect square in...
View Article