The newest release JDK 23 [2] comes with a neat extension to pattern matching for switch and instanceof statements, JEP-455: Primitive Types in Patterns, instanceof and switch [1]. While the introduction of pattern matching can be considered a crucial element …
-
How to Detect Cache Misses Using Observability
In this article, we’ll examine cache misses and, in general, learn about the caching concept and how to implement it in Spring Boot.
-
Increase readability and reduce complexity with Java’s Pattern Matching
Increase readability, reduce cognitive complexity, and avoid bugs that are hard to spot with Java’s Pattern Matching.
-
Busting Myths, Building Futures: A Conversation with Cay Horstmann on Java and Machine Learning
Cay Horstmann shares his experiences with Java, his writing process for technical books, the challenges of teaching Java, and discusses its role in education.
-
JDK Safari: How To Find Hidden Tools in the JDK
One of my hobbies is regularly searching the JDK for new Java classes with executable main methods.
-
Unusual Java: StackTrace Extends Throwable
While having a class that directly extends Throwable is surprising, it is allowed and is also useful for providing additional information.
-
Foojay Podcast #5: OpenJDK 19 Discussion Panel
It’s September 20th, OpenJDK 19 has been released. In this podcast, we discuss the new features and the changes that this release brings.
-
Wordish with JavaFX – Part 5
Let’s turn to JavaFX charts, showing how to customize charts with orientation and colors and how to add nodes to the chart scene graph!
-
GoF Design Patterns Using Java – Part 02
Let’s continue learning design patterns by implementing the Adapter, Facade, Template, Iterator, and State patterns using Java.
-
Java Thread Programming (Part 2)
Let’s see an example of where we can use Threads. Let’s assume we are building a web server that returns the most used words in a website.
-
Java Thread Programming (Part 1)
We write code in a file line by line, and then it gets executed. To be able to execute a piece of code requires an execution environment. In Java, a thread is an executing environment. If a program has only one executing environment, then we call this program a single-threaded program.