Tagged articles
7 articles
Page 1 of 1
JD Tech
JD Tech
May 15, 2023 · Backend Development

Implementing Asynchronous Timeout with CompletableFuture in Java (JDK 8 & JDK 9)

This article explains how to use Java's CompletableFuture for parallel execution, demonstrates the limitations of simple timeout handling in JDK 8, and shows how JDK 9's built‑in orTimeout method and a custom utility class can provide precise asynchronous timeout control for backend services.

Async TimeoutCompletableFutureJDK8
0 likes · 12 min read
Implementing Asynchronous Timeout with CompletableFuture in Java (JDK 8 & JDK 9)
Java Architect Essentials
Java Architect Essentials
Feb 15, 2023 · Backend Development

Mastering Java Optional: Creation, Methods, Real‑World Use Cases and Pitfalls

This article explains Java's Optional class, showing how to create empty or non‑empty instances, detailing key methods such as get, isPresent, ifPresent, orElse, orElseGet, orElseThrow, map, flatMap, filter, and illustrating practical service‑layer scenarios, JDK 9 enhancements, and when overusing Optional can hurt readability.

CodeExampleFunctionalProgrammingJDK9
0 likes · 10 min read
Mastering Java Optional: Creation, Methods, Real‑World Use Cases and Pitfalls
Programmer DD
Programmer DD
Feb 23, 2020 · Backend Development

How to Replace the Deprecated CMS GC in JDK 9?

This article explains why the CMS garbage collector was removed in JDK 9, shows the deprecation warning, and evaluates three migration paths—switching to G1 GC, adopting ZGC, or continuing with CMS—helping developers choose the best option for their applications.

CMS GCGarbage CollectionJDK9
0 likes · 5 min read
How to Replace the Deprecated CMS GC in JDK 9?
Java Architect Essentials
Java Architect Essentials
Mar 2, 2018 · Fundamentals

New Features of JDK 9

JDK 9 adds a range of language and runtime enhancements—including a new module system, JShell REPL, upgraded Stream API, HTTP client, and internal changes to strings and exception handling—to improve modularity, performance, and developer productivity across Java applications.

HttpClientJDK9JShell
0 likes · 9 min read
New Features of JDK 9