What’s New in Java 9? A Deep Dive into 150+ Features and Future Directions
This article reviews Java 9’s extensive new features—including the module system, jshell REPL, performance and security enhancements—explains their impact on development practices, and discusses the challenges and future directions for the Java platform.
After four delays, the official Java 9 release finally arrived. It can be downloaded from Oracle’s website.
JDK 9 introduces over 150 new features, including the long‑awaited module system, the interactive REPL tool jshell, security enhancements, performance improvements, and more.
Java 9 represents a massive system overhaul, affecting the compiler, runtime, public APIs, and internal code.
With the modular system, developers can use jlink to create custom runtime images, which is valuable for containerized applications and large‑scale deployments.
The module support encourages more disciplined development practices, better encapsulation, and reduces security risks.
However, the Java Platform Module System (JPMS) is not completely transparent; it impacts users even when they do not explicitly use it.
Reflection access control was handled with a compromise, preserving Java 8 behavior by default, while Java 9 overall shows greater compatibility tolerance.
Many Java 9 features are transparent to users, offering out‑of‑the‑box benefits such as compact strings, improved lock mechanisms, enhanced security performance, and CPU‑optimized cryptographic operations.
Notable New Features
Developers interested in low‑level APIs should explore JEP 193 (Variable Handles), JEP 274 (Enhanced Method Handles), JEP 259 (Stack‑Walking API), and JEP 285 (Spin‑Wait Hints).
In the JVM area, JEP 271 and JEP 158 unify GC and JVM logging, simplifying diagnostics.
Java’s startup and runtime performance remain a focus; JIT compilation, AOT compilation via jaotc, and the JVM Compiler Interface (JVMCI) bring new possibilities.
Projects like Graal, Truffle, and Substrate VM aim to make high‑performance dynamic compilation more accessible.
Future Challenges and Directions
Delays in the Jigsaw project highlighted the need for more agile, time‑driven release cycles and open‑sourcing of commercial features.
Emerging cloud, container, and Function‑as‑a‑Service (FaaS) workloads demand faster startup, better resource management (cgroup support), and optimized garbage collection.
Improvements such as local‑variable type inference (JEP 286), enhanced concurrency frameworks, Project Panama for native interop, and Valhalla’s value types are ongoing efforts.
Community involvement through OpenJDK is encouraged for continued innovation.
Related Links
Installation Instructions: http://docs.oracle.com/javase/9/docs/technotes/guides/install/install_overview.html
Release Notes: http://www.oracle.com/technetwork/java/javase/documentation/9u-relnotes-3704429.html
What’s New in Oracle JDK 9: https://docs.oracle.com/javase/9/whatsnew/toc.htm#JSNEW-GUID-C23AFD78-C777-460B-8ACE-58BE5EA681F6
Readme: http://www.oracle.com/technetwork/java/javase/documentation/jdk9-readme-3852447.html
JDK 9 Feature List (selected)
Process API updates (JEP 102)
HTTP/2 Client (JEP 110)
Improved thread contention handling (JEP 143)
Unified JVM logging (JEP 158)
Compiler Control (JEP 165)
Variable Handles (JEP 193)
Stack‑Walking API (JEP 259)
Compact Strings (JEP 254)
jlink – the Java Linker (JEP 282)
Ahead‑of‑Time Compilation (JEP 295)
Graal integration (JEP 243)
Enhanced Method Handles (JEP 274)
Modular runtime images (JEP 220)
Unified GC Logging (JEP 271)
… and many more.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
21CTO
21CTO (21CTO.com) offers developers community, training, and services, making it your go‑to learning and service platform.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
