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

Udemy

Modern Java: Data Oriented Programming Masterclass

via Udemy

Overview

Master the Modern Java: Records, Pattern Matching, and Sealed Types for Clean Domain Models and Smarter Error Handling

What you'll learn:
  • Understand the core principles of Data Oriented Programming (DOP) and how it differs from traditional Object Oriented Programming (OOP)
  • Use Java Records to model immutable data structures cleanly and concisely
  • Design clear and controlled hierarchies using sealed classes and interfaces
  • Handle domain-specific errors using algebraic data types (ADTs) and sealed hierarchies
  • Replace verbose inheritance-based models with expressive, data-driven design
  • Use guarded and nested patterns to handle complex business rules with ease
  • Refactor legacy OOP codebases into modern, maintainable DOP-style architectures
  • Understand how modern Java features lead to better readability
  • Build real-world applications using pure data models, functional logic, and modern Java syntax
  • Model business rules, responses, and error cases using type-safe alternatives to exceptions
  • Learn how to use records and sealed types in serialization for clean APIs
  • Gain practical experience through a hands-on project

Prerequisite: Prior knowledge of Java (up to version 17)
--

Lets deep dive into Data Oriented Programming (DOP) in Java. A modern, practical, and forward-looking programming paradigm that is reshaping how Java applications are designed and developed.

In this masterclass, you will learn how to write clearer, safer, and more maintainable Java code by shifting your mindset from objects and inheritance to data and behavior separation. Through hands-on lessons and real-world use cases, you will discover how to leverage Java’s latest language features Records, Sealed Types, and Pattern Matching to build data-centric applications that are easy to reason about and evolve.

What You Will Learn

  • Crash Courses on Key Modern Java Features

    • Records: Learn how Java Records simplify data modeling, enforce immutability, and reduce boilerplate & when to choose records over classes.

    • Sealed Types: Master sealed classes and interfaces to build expressive, restricted hierarchies and eliminate misuse of inheritance.

    • Pattern Matching: Simplify conditionals using pattern matching with switch expressions, including nested and guarded patterns.

  • Foundations of Data Oriented Programming

    • Understand the principles of DOP and how it contrasts with traditional OOP.

    • Dive into Algebraic Data Types (ADTs) in Java using Records and Sealed Types to model domain logic precisely and safely.

  • Practical Use Cases and Real-World Integration

    • Implement DOP in real-world scenarios, from API modeling to complex business rules.

    • Serialize and deserialize sealed hierarchies using Jackson including how to work with polymorphic types in JSON.

    • Explore data modeling, validation logic, and how DOP can simplify state machines, complex business workflows.

  • Better Error Handling

    • Use sealed hierarchies to represent all possible error cases.

    • Apply pattern matching to handle errors in a concise and exhaustive way. No missed edge cases.

  • Hands-On Final Project

Why Take This Course?

This course is designed for Java developers who want to:

  • Stay ahead with modern Java features

  • Write more declarative, composable, and readable code

  • Replace legacy boilerplate with expressive data models

  • Understand the real value of Records, Sealed Types, and Pattern Matching beyond syntax

  • Learn data oriented thinking, ADTs, and functional ideas without leaving Java

Whether you are building APIs, business systems or modern backend services, this course will transform how you model, process, and reason about data in Java.

Taught by

Vinoth Selvaraj

Reviews

4.7 rating at Udemy based on 52 ratings

Start your review of Modern Java: Data Oriented Programming Masterclass

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.