0% found this document useful (0 votes)
17 views4 pages

Java21 Introduction

Java 21 is a Long Term Support (LTS) release featuring finalized switch pattern matching, record patterns, unnamed classes, and instance main methods. It includes sequenced collections as well. Additional resources such as Java source files and command notes are provided.

Uploaded by

gs23133
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views4 pages

Java21 Introduction

Java 21 is a Long Term Support (LTS) release featuring finalized switch pattern matching, record patterns, unnamed classes, and instance main methods. It includes sequenced collections as well. Additional resources such as Java source files and command notes are provided.

Uploaded by

gs23133
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Java 21

Copyright © Seán Kennedy


Java 21
• Java 21 is a Long Term Support (LTS) release.
• https://openjdk.org/projects/jdk/21/

• Topics:
• unnamed classes and instance main methods.
• record patterns.
• switch pattern matching.
• sequenced collections

• Assignment

Copyright © Seán Kennedy


Java 21

Feature/Release Java 18 Java 19 Java 20 Java21 (LTS)


switch pattern 2nd preview 3rd preview 4th preview Finalized
matching (JEP 420) (JEP 427) (JEP 433) (JEP 441)
Record patterns 1st preview 2nd preview Finalized
(JEP 405) (JEP 432) (JEP 440)
Unnamed Preview
classes/instance (JEP 445)
main methods
Sequenced JEP 431
collections

Copyright © Seán Kennedy


Java 21
• Resources:
• Java source files
• Notes (PDF’s)
• javac and java commands (text file).

Copyright © Seán Kennedy

You might also like