New Language Features in Java 9-17
<p>This course teaches you new language and API features introduced in Java 9 to 17 right in your favorite IDE:</p><ul> <li>the var keyword</li> <li>useful new API methods on Strings and streams</li> <li>new collection factory methods</li> <li>text blocks</li> <li>pattern matching with instanceof</li> <li>records</li> <li>switch expressions</li> <li>sealed interfaces and classes</li> </ul> <p>The examples are accompanied by recommendations when to use these new features.</p> <p><strong>Target audience:</strong> 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.</p>
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.
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?
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 free IDE for your course.
Learn more about our licences here.
Click Launch 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.
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 free IDE for your course.
Learn more about our licences here.
Click Launch 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 essential 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.





