From Java 17 to Java 21

From Java 17 to Java 21

Fu Cheng
This is a sample of the book's content.Buy on Leanpub

Table of Contents

Introduction›

  • Introduction
    • JEPs in Different Java Releases
    • Install Java 21
    • Build Tools
    • Source Code

Java Language›

  • String Templates
    • Template Expressions
    • String Template
    • Template Processor
    • SMS Message Template
    • Format Processor
  • Unnamed Classes and Instance Main Methods
    • Java Program Launch Protocol
    • Unnamed Classes
  • Code Snippets in Java API Documentation
    • Inline Snippets
    • External Snippets
    • Markup Tags
    • Tag References
  • Pattern Matching
    • Record Patterns
    • Pattern Matching for switch
    • Unnamed Patterns and Variables

Core Library›

  • UTF-8 By Default
  • Internet-Address Resolution SPI
  • Simple Web Server
  • Sequenced Collections
    • SequencedCollection
    • SequencedSet
    • SequencedMap
    • Classes Hierarchy
  • Reimplement Core Reflection with Method Handles
  • Key Encapsulation Mechanism API

Multi-threading›

  • Virtual Threads
    • Create Virtual Threads
    • Virtual Threads Basics
    • Thread-local Variables
    • Scheduling of Virtual Threads
    • Execution of Virtual Threads
    • ExecutorService
    • Debugging
  • Structured Concurrency
    • Basic Usage
    • invokeAll
    • invokeAny
    • Shutdown and Close of StructuredTaskScope
  • Scoped Values

Project Panama›

  • Foreign Function & Memory API
    • Foreign Memory
    • Memory Segments
    • Arenas
    • Dereferencing Memory Segments
    • Memory Layouts
    • Dereferencing Memory Layouts
    • More About Arenas
    • Foreign Functions
  • Vector API
    • API Basics
    • Euclidean Distance Calculation

JVM›

  • Generational ZGC
  • Prepare to Disallow the Dynamic Loading of Agents

Deprecated & Removed Features›

  • Deprecated Features
    • Finalization
    • Windows 32-bit x86 Port

Miscellaneous›

  • Linux/RISC-V Port
  • Annotation Processing
From Java 17 to Java 21/Core Library

Core Library

https://leanpub.com/java17to21

Up next

UTF-8 By Default

In this part

  • UTF-8 By Default
  • Internet-Address Resolution SPI
  • Simple Web Server
  • Sequenced Collections
  • SequencedCollection
  • SequencedSet
  • SequencedMap
  • Classes Hierarchy
  • Reimplement Core Reflection with Method Handles
  • Key Encapsulation Mechanism API