Advent of Code 2025 – Java Solutions
A developer shares their Java solutions for Advent of Code 2025 puzzles, focusing on code clarity and using Java 25 features.
Sven Woltmann is a Java scalability and performance specialist with 20+ years of experience, helping teams design, optimize, and maintain high-performance Java backend systems.
9 articles from this blog
A developer shares their Java solutions for Advent of Code 2025 puzzles, focusing on code clarity and using Java 25 features.
Overview of finalized features in Java 26, including JEPs for final field warnings, HTTP/3 support, and preview features like Structured Concurrency.
Explains Java's upcoming 'Withers' feature for creating derived records, a preview feature to simplify immutable record modifications.
Overview of new features in Java 25, including Scoped Values, Compact Source Files, Flexible Constructor Bodies, and performance improvements.
Explains the Initialization-on-Demand Holder idiom for lazy, thread-safe static initialization in Java, comparing it to alternatives.
Explains the Double-Checked Locking pattern in Java for thread-safe lazy initialization, covering its pitfalls and correct implementation.
Explains Java's new Lazy Constants feature for safe, one-time initialization of immutable values, covering benefits and internal workings.
Explains Java's new Compact Object Headers (JEP 519), detailing how they reduce memory usage and improve performance by compressing object headers.
Overview of Java 24's new features, including Stream Gatherers, virtual thread synchronization, and performance improvements.