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
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.
This course runs directly in your JetBrains IDE
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.