JetBrains Academy logo
JavaTim Feuerbach

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>

Skill levelAdvanced
Time to complete 3 days
Skill levelAdvanced
Time to complete 3 days

About this course

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.

Code editor icon

This course runs directly in your JetBrains IDE

Learn more

Content

  1. Introduction
  1. Local variable type inference (var)
  2. Collection factory methods
  3. Additions to the Stream API
  4. Text Blocks
  5. Additions to the String API
  1. Defining and using records
  2. Records and reflection
  1. Pattern Matching with instanceof
  1. Introduction to Switch Expressions
  2. Defining and using Switch Expressions
  3. Advanced Switch Expressions
  1. Defining sealed interfaces and classes
  2. Location of subtypes
  3. Advanced topics for sealed types

Learn with the tools developers use every day

Real-world development environmentZoom
Real-world development environmentZoom
Real-world development environmentZoom
Real-world development environmentZoom
  • Real-world development environment

    Gain practical experience with the tools and workflows you'll use in your career, minimizing the learning curve when transitioning to real-world projects.

  • Project-based learning journey

    Our plugin is built to help you finish real-world coding projects, which you can display in your code portfolio after completion.

  • Collaboration via Git

    Effortlessly track changes and collaborate on projects using Git, an essential tool for programmers in every field.

  • Focused learning

    Enjoy fewer distractions with assignments, code, debugging, and version control all in one window.

Student? Get JetBrains IDEs & hands-on courses — free for the full duration of your studies.

Apply using your school email, student ID, ISIC card, or another official document.

What do you need to start?

1

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 free IDE for your course.

Learn more about our licences here.

Download
2

Confirm the course launch

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.

Download

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

Report IssueLicense

Learn to code like a pro with JetBrains Academy

Explore catalog
Privacy & SecurityTerms of UseTrademarksLegalGenuine Tools
© 2000—2025 JetBrains s.r.o. All rights reserved. Developed with drive and IntelliJ IDEA

You'll take this course in your JetBrains IDE.
Just install JetBrains Toolbox 2.7+, and we'll handle the rest!