Book Description

The Java release train is moving faster than ever. Beginning with Java 9 in 2017, the platform’s one-to-three year release cycle accelerated to every six months, ensuring that timely new features and fixes would reach developers quickly. But as this ebook explains, Java 11 is more than just another incremental release.

Benjamin Muschko, software engineer and consultant, examines the many changes in Java 11, including several new features and the removal or deprecation of some older ones. You’ll also learn the intricate differences between the Oracle JDK and other open source JDK distributions when it comes to licensing terms and patch update availability.

This ebook covers:

  • The merging of Oracle JDK and OpenJDK: Flight Recorder, Java Mission Control, and other commercial features are now free.
  • Latest features and API enhancements: Java 11 includes a modern HTTP client, Unicode 10, nest-based access control, and more.
  • Removed APIs and deprecations: Java 11 eliminates Java EE modules as well as applets and Java Web Start and decouples JavaFX from the JDK.
  • Performance and security: Java 11 features two new garbage collectors and supports TLS 1.3, the latest version of the Transport Layer Security protocol.

Table of Contents

  1. What’s New in Java 11
    1. Introduction
      1. Convergence of Oracle JDK and OpenJDK
      2. Licensing of the Oracle JDK and OpenJDK
      3. Six-Month Release Cadence: What It Means to You
      4. Long-Term Support
    2. New Features
      1. Built-in and Improved HTTP Communication with HttpClient
      2. Launching Single-File Programs Without Compilation
      3. New Library Methods for Strings, Collections, and Files
      4. Enhancements to Optional and Predicate
    3. Removed Features and APIs
      1. Removed Java EE Modules
      2. Applets and Java Web Start
      3. JavaFX Migrates to OpenJFX
    4. Deprecated Features and APIs
      1. Nashorn JavaScript Engine
      2. VM Options and Other Tools
    5. Performance and Security
      1. Garbage Collection
      2. TLS 1.3 and Support for Cryptographic Algorithms
    6. Summary and References to Further Reading