Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

All New Java Language Features Since Java 21 - Road to Java 25

Java via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore the comprehensive new language features introduced in Java 25 in this 35-minute video presentation by Jose from Java. Discover how these enhancements focus on data-oriented programming, making Java more accessible to new developers, and improving its viability as a scripting language for automation tasks. Learn to implement pattern matching with sealed types using switch statements, and master the use of unnamed variables to simplify patterns in record patterns, type patterns, exception handling, and lambda expressions. Dive into extended pattern matching capabilities with primitive types, including practical applications for analyzing HTTP response statuses, switching on booleans, and performing safe JSON data analysis. Understand how Java 25 simplifies application development through features like IO.println() for printing messages, running Java code without explicit compilation, executing multi-file source-code programs, and importing modules in Java classes. Examine the new Markdown support for JavaDoc documentation and explore advanced object construction techniques for managing null values and constants. Master the implementation of Stable Values for creating true constants and utilize Flexible Constructor Bodies for more versatile object construction patterns. Access detailed JEP references for Records, Pattern Matching, Sealed Classes, Switch Expressions, and other key features that define Java 25's evolution toward more expressive and developer-friendly programming paradigms.

Syllabus

0:00 Intro
1:21 Data Oriented Programming
2:03 Switching on a sealed type using pattern matching
4:23 Simplifying patterns with unnamed variables
7:23 Analyzing the use of unnamed variables in record patterns
8:27 Using unnamed variables in type patterns
8:54 Using unnamed variables when catching exceptions
9:35 Using unnamed variables in lambda expressions
11:28 Using unnamed variables in other places
13:55 Extending Pattern Matching with primitive types
15:04 Analyzing the status of an HTTP response with switch on primitive patterns
16:29 Switching on booleans
17:15 Safe JSON data analysis with primitive patterns
20:33 Simplifying the writing of Java applications
22:14 Using IO.println to print messages
22:41 Running some Java code without calling the compiler
23:40 Running multi-file source-code programs
24:40 Importing modules in Java classes
26:02 Wrapping up simplified Java applications
27:06 Using Markdown to write your JavaDoc
28:37 Constructing object to manage null values and constants properly
30:59 Analyzing the construction of objects
32:29 Introducing Stable Values to create real constants
33:28 Revising object construction with Flexible Constructor Bodies

Taught by

Java

Reviews

Start your review of All New Java Language Features Since Java 21 - Road to Java 25

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.