Email the Author

You can use this page to email Fu Cheng about From Java 17 to Java 21.

Please include an email address so the author can respond to your query

This message will be sent to Fu Cheng

This site is protected by reCAPTCHA and the Google  Privacy Policy and  Terms of Service apply.

About the Book

Upgrade to Java 21 to use virtual threads.

Changes from Java 17 LTS to Java 21 LTS, including updates in Java 18, 19, 20 and 21.

Content included in the book:

  • Pattern matching
  1. Record patterns
  2. Pattern matching for switch
  3. Unnamed patterns and variables
  • Multi-threading
  1. Virtual threads
  2. Structured concurrency
  3. Scoped values
  • Standard library changes
  1. UTF-8 by default
  2. Internet-address resolution SPI
  3. Simple web server
  4. Sequenced collections
  5. Key Encapsulation Mechanism API
  • Java languages
  1. String templates
  2. Code snippets in Java API documentation
  3. Unnamed classes and instance main methods
  • Panama project
  1. Foreign Function & Memory API
  2. Vector API

If you are currently using Java 11 LTS, check out another book From Java 11 to 17.


About the Author

Fu Cheng’s avatar Fu Cheng

@alexcheng1982

Full-stack software developer and content creator.

Logo white 96 67 2x

Publish Early, Publish Often

  • Path
  • There are many paths, but the one you're on right now on Leanpub is:
  • Java17to21 › Email Author › New
    • READERS
    • Newsletters
    • Weekly Sale
    • Monthly Sale
    • Store
    • Home
    • Redeem a Token
    • Search
    • Support
    • Leanpub FAQ
    • Leanpub Author FAQ
    • Search our Help Center
    • How to Contact Us
    • FRONTMATTER PODCAST
    • Featured Episode
    • Episode List
    • MEMBERSHIPS
    • Reader Memberships
    • Department Reader Memberships
    • Author Memberships
    • Your Membership
    • COMPANY
    • About
    • About Leanpub
    • Blog
    • Contact
    • Press
    • Essays
    • AI Services
    • Imagine a world...
    • Manifesto
    • More
    • Partner Program
    • Causes
    • Accessibility
    • AUTHORS
    • Write and Publish on Leanpub
    • Create a Book
    • Create a Bundle
    • Create a Course
    • Create a Track
    • Testimonials
    • Why Leanpub
    • Services
    • TranslateAI
    • TranslateWord
    • TranslateEPUB
    • PublishWord
    • Publish on Amazon
    • CourseAI
    • GlobalAuthor
    • Marketing Packages
    • IndexAI
    • Author Newsletter
    • The Leanpub Author Update
    • Author Support
    • Author Help Center
    • Leanpub Authors Forum
    • The Leanpub Manual
    • Supported Languages
    • The LFM Manual
    • Markua Manual
    • API Docs
    • Organizations
    • Learn More
    • Sign Up
    • LEGAL
    • Terms of Service
    • Copyright Policy
    • Privacy Policy
    • Refund Policy

*   *   *

Leanpub is copyright © 2010-2025 Ruboss Technology Corp.
All rights reserved.

This site is protected by reCAPTCHA
and the Google  Privacy Policy and  Terms of Service apply.

Leanpub requires cookies in order to provide you the best experience. Dismiss