Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Modern Java: Data Oriented Programming Masterclass
Rating: 4.7 out of 5(65 ratings)
748 students
Created byVinoth Selvaraj
Last updated 4/2026
English

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

Course content

14 sections129 lectures9h 49m total length
  • Before You Enroll5:27

    Explore data oriented programming in modern Java, moving beyond rigid responses to rich data models for microservices, with modern features like records and pattern matching.

Requirements

  • Prior knowledge of Java (up to version 17)
  • It is a Hands-On course. You should be willing to write code!
  • Comfortable with Indian Accent
  • Patience To Learn!

Description

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.

Who this course is for:

  • Any Java Developer / Architect who is interested in learning modern Java features