Top Features of Java 21
37mIntermediate2025-09-04
Authors

Bethan Palmer
Developer
Course details
In this course, developer Bethan Palmer guides you through the top features of Java 21. After an overview of the Java release cycle, dive into string templates, sequenced collections, and record patterns. Learn about pattern matching with switch statements, as well as how to use unnamed patterns and variables. Discover the new way to define main methods and find out what an unnamed class is. Plus, explore virtual threads and generational ZGC.
Learning objectives
Recall the most common features of Java 21
Summarize what each feature is
Demonstrate how to use the features
Learning objectives
Recall the most common features of Java 21
Summarize what each feature is
Demonstrate how to use the features
Skills covered
JavaOracleProgramming LanguagesSoftware DevelopmentOne-Off
Concepts
0. Introduction
- 01 - Learn Java 21's top features
1. Java Release Cycle
- 02 - Understand the Java release cycle
2. String Templates
- 03 - Using String templates
3. Sequenced Collections
- 04 - Using sequenced collections
4. Record Patterns
- 05 - Using record patterns
5. Pattern Matching for Switch Statements
- 06 - Using pattern matching for switch
6. Unnamed Patterns and Variables
- 07 - Using unnamed patterns
- 08 - Using unnamed variables
7. Unnamed Classes and Instance main Methods
- 09 - Using unnamed classes and instance main methods
8. Virtual Threads
- 10 - What are virtual threads
- 11 - Using virtual threads
9. Generational ZGC
- 12 - What is Generational ZGC
- 13 - How does Generational ZGC work
Conclusion
- 14 - Next steps
Related courses
Related learn paths
- Prepare for the MTA: Software Development Fundamentals Exam (98-361)
- The Top Skills Engineering Professionals Have Right Now
- Become a Java EE 7 Developer
- Succeed as a Remote Software Developer
- Master Test Automation with Playwright
- Advance Your Skills as an R Expert
- The Top Skills IT Professionals Have Right Now
- The Top Skills Marketing Professionals Have Right Now