Tagged articles

JDK 8

4 articles · Page 1 of 1
Java Tech Workshop
Java Tech Workshop
Sep 28, 2026 · Fundamentals

Java Interface Default & Static Methods: Evolution Tool or Maintenance Trap?

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.

Interface Default MethodsInterface EvolutionInterface Static Methods
0 likes · 24 min read
Java Interface Default & Static Methods: Evolution Tool or Maintenance Trap?
Java Captain
Java Captain
Sep 21, 2026 · Backend Development

Java Collectors.toMap Pitfalls: Duplicate Keys, Null Values, and Safe Usage Patterns

This article explores hidden pitfalls in Java's Collectors.toMap including duplicate key exceptions, null value handling limitations, null key behavior, and null list safety, providing practical workarounds like merge functions and Optional-based null handling for robust stream-to-map conversions.

Best PracticesCollectors.toMapDuplicate Keys
0 likes · 7 min read
Java Collectors.toMap Pitfalls: Duplicate Keys, Null Values, and Safe Usage Patterns
Dabaoshi
Dabaoshi
Aug 8, 2026 · Fundamentals

Understanding JVM Class Loading: Mechanisms, Delegation, and Custom ClassLoaders

This article walks through the full lifecycle of a Java class—from loading, verification, preparation, and resolution to initialization, usage, and unloading—explains active versus passive references, the parent‑delegation model, JDK 8‑to‑17 module‑system changes, and shows how to write a custom ClassLoader for class isolation.

Class LoadingClassLoaderCustom ClassLoader
0 likes · 26 min read
Understanding JVM Class Loading: Mechanisms, Delegation, and Custom ClassLoaders
JD Tech Talk
JD Tech Talk
Dec 23, 2024 · Backend Development

Asynchronous Timeout Implementation for CompletableFuture in JDK 8

This article proposes an asynchronous timeout implementation for CompletableFuture in JDK 8, addressing the lack of built-in timeout interruption capabilities and providing a solution for precise task timeout control.

Asynchronous ProgrammingCompletableFutureJDK 8
0 likes · 10 min read
Asynchronous Timeout Implementation for CompletableFuture in JDK 8