From Java 11 to Java 17

From Java 11 to Java 17

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

Table of Contents

From Java 11 to Java 17

  • Introduction
    • Java Releases Schedule After Java 9
    • JEPs in Different Java Releases
    • Install Java 17
    • Build Tools
    • Source Code
  • Records
    • Value Objects
    • Alternatives
    • Use Records
  • Sealed Classes
    • Inheritance in Java
    • Sealed Classes
    • Sealed Interfaces
    • Sealed and Record Classes
    • Reflection API
    • Class File Changes
  • Switch Expressions
    • Problems with switch Statement
    • Switch Expression
    • Arrow Labels
  • Pattern Matching
    • Pattern Matching for instanceof
    • Pattern Matching for switch
  • Text Blocks
    • Text Blocks
    • Re-indentation
    • Escape Sequences
    • New String Methods
  • Low-level APIs
    • JFR Event Streaming
    • JVM Constants API
    • Hidden Classes
  • Standard Libraries
    • Unix-Domain Socket Channels
    • Reimplement the Legacy Socket API
    • Reimplement the Legacy DatagramSocket API
    • Enhanced Pseudo-Random Number Generators
    • New macOS Rendering Pipeline
    • Edwards-Curve Digital Signature Algorithm (EdDSA)
    • Context-Specific Deserialization Filters
  • JVM
    • Class-Data Sharing
    • Helpful NullPointExceptions
    • Elastic Metaspace
    • Deprecate and Disable Biased Locking
  • Packaging Tool
    • Use jpackage
    • Custom Runtime Image
  • Garbage Collectors
    • ZGC
    • Shenandoah
    • Deprecated GC
    • Removed GC
    • Updates to G1
  • Foreign Function & Memory API
    • Foreign Memory
    • Foreign Functions
  • Deprecated & Removed Features
    • Deprecated Features
    • Removed Features
  • Misc.
    • Restore Always-Strict Floating-Point Semantics
    • macOS/AArch64 Port
    • Alpine Linux Port
    • Strongly Encapsulate JDK Internals
    • Migrate to GitHub
From Java 11 to Java 17/Pattern Matching

Pattern Matching

https://leanpub.com/java11to17

Pattern Matching for instanceof

https://leanpub.com/java11to17

Pattern Matching for switch

https://leanpub.com/java11to17

Up next

Text Blocks

In this chapter

  • Pattern Matching
  • Pattern Matching for instanceof
  • Pattern Matching for switch