Java
-

Algebraic Data Types and Pattern Matching, Compared
Java, Rust, Scala, and Haskell all let you say “a Shape is exactly a Circle, a Square, or a Triangle,…
Read More » -

Consistent Overflow: Two’s Complement and Modular Arithmetic
Java promises that Integer.MAX_VALUE + 1 always equals Integer.MIN_VALUE. That promise is exactly what let a bug hide inside the…
Read More » -

Type Erasure and What It Actually Costs
List<String> and List<Integer> are the exact same class once the JVM gets involved. Here’s why Java made that trade, and…
Read More » -

Spring AI Short Term Memory Sessions Example
Large Language Models are fundamentally stateless. If an application sends the question “What is my favorite programming language?” to a…
Read More » -

Project Leyden and AOT Caching: Is “Fast Startup” Actually Solved Now?
Java 26 just extended AOT caching to ZGC. Before you reach for GraalVM Native Image again, it’s worth asking what…
Read More » -

Implementing and Testing a Spring MVC HandlerInterceptor
In a Spring MVC application, interceptors provide a powerful mechanism to execute custom logic before and after processing HTTP requests.…
Read More » -

Solving MySQL Incorrect String Value Exception with Java
When working with Java applications and MySQL, one of the most common database exceptions developers encounter is java.sql.SQLException: Incorrect string…
Read More » -

Getting Process ID in Java
Every running Java Virtual Machine (JVM) application executes as an operating system process. Like every other process, the JVM is…
Read More »



