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/overview

From Java 17 to Java 21

course_overview

Features and changes from Java 17 to Java 21. Record patterns, pattern matching, virtual threads, structured concurrency, Foreign Function & Memory API

count_parts
·
count_chapters
begin_reading
download
part_count

Introduction1 chapters

Begin part ›
  1. Introduction

part_count

Java Language4 chapters

Begin part ›
  1. String Templates

  2. Unnamed Classes and Instance Main Methods

  3. Code Snippets in Java API Documentation

  4. Pattern Matching

part_count

Core Library6 chapters

Begin part ›
  1. UTF-8 By Default

  2. Internet-Address Resolution SPI

  3. Simple Web Server

  4. Sequenced Collections

  5. Reimplement Core Reflection with Method Handles

  6. Key Encapsulation Mechanism API

part_count

Multi-threading3 chapters

Begin part ›
  1. Virtual Threads

  2. Structured Concurrency

  3. Scoped Values

part_count

Project Panama2 chapters

Begin part ›
  1. Foreign Function & Memory API

  2. Vector API

part_count

JVM2 chapters

Begin part ›
  1. Generational ZGC

  2. Prepare to Disallow the Dynamic Loading of Agents

part_count

Deprecated & Removed Features1 chapters

Begin part ›
  1. Deprecated Features

part_count

Miscellaneous2 chapters

Begin part ›
  1. Linux/RISC-V Port

  2. Annotation Processing