New Language Features in Java 9-17
About
This course teaches you new language and API features introduced in Java 9 to 17 right in your favorite IDE:
- the var keyword
- useful new API methods on Strings and streams
- new collection factory methods
- text blocks
- pattern matching with instanceof
- records
- switch expressions
- sealed interfaces and classes
The examples are accompanied by recommendations when to use these new features.
Target audience: You are an intermediate to experienced Java developer, familiar with Java 8, and want to learn about the new features you can use when developing on JDK 17 in depth.
External author course
This course was created and is maintained by an independent author. JetBrains Academy only verifies that it works correctly and is safe to use. For any questions about the content, please contact the course author directly.
Content
- Introduction
- Local variable type inference (var)
- Collection factory methods
- Additions to the Stream API
- Text Blocks
- Additions to the String API
- Defining and using records
- Records and reflection
- Pattern Matching with instanceof
- Introduction to Switch Expressions
- Defining and using Switch Expressions
- Advanced Switch Expressions
- Defining sealed interfaces and classes
- Location of subtypes
- Advanced topics for sealed types
Learn with the tools developers use every day
What do you need to start?
Install the free JetBrains Toolbox App
The JetBrains Toolbox App 2.7+ makes setting up your course effortless. Already have a compatible IDE? It will launch it. If not, the app will install the right IDE for your course.
Learn more about our licenses here.

Confirm the course launch
Click Take course and then Allow to open the Toolbox App.
Select Always Allow to skip this confirmation in the future.
To return to the course later, find it in your IDE's recent projects.
Need more help? Check out our guide.


Click Take course and then Allow to open the Toolbox App.
Select Always Allow to skip this confirmation in the future.
To return to the course later, find it in your IDE's recent projects.
Need more help? Check out our guide.

FAQ and troubleshooting
Yes, you will need the JetBrains Toolbox App and a JetBrains IDE.
Just click this link to install the JetBrains Toolbox App. We've taken care of all the necessary settings, and the app will handle the rest of the setup for you.
The JetBrains Toolbox App checks which IDE is compatible with your course and whether it is installed on your computer. If you have the necessary IDE installed, the app will open it. If not, JetBrains Toolbox will initiate the installation, prioritizing free community editions.
Yes, the JetBrains Toolbox App is essential, even if you already have a JetBrains IDE. It automatically prepares your IDE for studying by installing the required plugins and updating the IDE if necessary.
Please make sure you have the latest version of the JetBrains Toolbox App. To update, open the app and click Update Toolbox App, or download the latest version here.
If you’re using a Chrome-based browser, please also allow Find devices on local networks in the popup that appears on the course page. When this permission is granted, the page will detect when the Toolbox App opens on your system and you’ll be able to open the course properly.
Yes! It's 100% free and works with both the free and paid versions of JetBrains IDEs.
If you're a student, apply for the Student Pack to get full access to JetBrains IDEs for the duration of your studies. If not, check if you qualify for a free non-commercial license.



