Why you should be using Java Records

preview_player
Показать описание
In this video, we'll be taking a deep dive into Java Records, a new feature introduced in Java 14. Java Records are a concise and easy way to create immutable classes for storing data.

00:00 Intro
00:55 Demo: Java Records
02:28 Creating a Record
05:06 Java Records are Immutable
06:08 Canonical Constructor
08:21 Compact Constructor
09:37 Custom Accessor Method
11:09 Static Field and Initialiser
13:04 Bonus Java Record Benefit

#java #coding #programming
Рекомендации по теме
Комментарии
Автор

Using the new Intellij UI that was in beta at the time of recording. I like it, although it does look familiar 👀
What do you guys think?

Jonathan.Davies