Latest articles
3 articles in the current browsing window, ordered by publication date.
This article analyzes Java 8+ interface default and static methods, explaining their original purpose for backward-compatible interface evolution, valid use cases like optional capabilities and mixin-style derived methods, and common pitfalls including hidden assumptions, silent failures, fixed workflows that prevent customization, and binary vs semantic compatibility issues. It includes a real-world refactoring example for payment callback handlers.

This article explores Java 9's module system, its core principles, and practical implementation through a multi-module project example, highlighting benefits like modular encapsulation, dependency management, and reduced resource usage.

The article explains Java’s try‑with‑resources feature as syntactic sugar that the compiler rewrites into a try‑finally structure with sophisticated exception handling, demonstrates the generated bytecode, clarifies AutoCloseable versus Closeable, and offers best‑practice guidelines for reliable resource management.

Up to 500 articles, 100 per page. The archive offers another way to explore older articles.