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

YouTube

Data-Oriented Programming in Java - Records, Sealed Classes, and Pattern Matching

Java via YouTube

Overview

Explore data-oriented programming in Java through a comprehensive 32-minute video presentation by Oracle's Gavin Bierman. Dive into the latest Java features, including records, sealed classes, and pattern matching, and learn how they work together to enable a new programming style well-suited for modern cloud applications. Discover the evolution of Java's Project Amber and its impact on object-oriented programming. Gain insights into new tools like record classes and sealed classes, and understand their practical applications. Examine pattern matching techniques in instanceof and switch statements, and learn how to effectively use these features over sealed hierarchies. Investigate record patterns and their role in consuming and processing data types. Explore JSON value handling and searching techniques within the context of data-oriented programming. By the end of this talk, acquire a solid understanding of how these new Java features can be leveraged to write more efficient and maintainable code for cloud-based applications.

Syllabus

Intro
Project Amber
What is Object-oriented Programming?
Boundaries
Trend: small program units
New Emphasis
New Tools: Record Classes
New tools: Sealed classes
Test and extract
Pattern Matching in instanceof
Pattern matching in switch
Pattern matching over sealed hierarchies in switch
Record Patterns
Consuming the Future Type
Rethinking The Future Type
Processing a Better Return Type
JSON Values
JSON: Searching for Values
Recap: Data-oriented programming

Taught by

Java

Reviews

Start your review of Data-Oriented Programming in Java - Records, Sealed Classes, and Pattern Matching

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.