Java Core / Part 1YOUTUBE PLAYER LOADS ON PLAYJava Records
records
Java Records Explained: Stop Writing Boilerplate (Complete Guide)
In this lesson
Tired of writing endless getters, equals(), hashCode() and toString() for every Java class? Java Records replace all of that with a single line.
- Why records were added to Java
- What a record generates for you, and why it's immutable
- Canonical, compact & custom constructors (with validation)
- Implementing interfaces with records
- Local records: declaring records inside methods
Like · 💬 Comment · 🔄 Share if this helped you ditch the boilerplate!
Chapters
Java Core, 2 of 7 out
1Java Records Explained: Stop Writing Boilerplate (Complete Guide)13:422The 4 Pillars of OOP in 60 Seconds0:563Polymorphism: method picked at runtimeWed 2 Dec4Abstract class vs interfaceSun 6 Dec5Composition over inheritanceWed 9 Dec6Design pattern: Singleton (thread-safe)Sun 13 Dec7Design pattern: BuilderWed 16 DecKeep going
More walkthroughs.
JUnit 6 Tutorial for Beginners: First Unit Test with AssertJ and @ParameterizedTest, Video.
Why Write Tests? The Test Pyramid Explained with One Real Bug, Video.
3 Spring Boot Testing Mistakes: The Test Passes but the Price Is Wrong, Video.
Spring Boot Testcontainers Tutorial: Test the Whole App on Real Postgres, Video.
