Revisiting Effective Java in 2020
summary
Covers concrete changes from Effective Java 3rd edition: shows live Java code using Guava and JDK utilities to prefer factory methods over constructors (caching/flyweight, API evolution), minimize mutability with final fields and builders, implement equals/hashCode (Objects.equals, Objects.hash, precomputed hash), and separate debug vs business strings (Formattable). Demonstrates Java 8 comparators, five method-reference types, reuse of JDK functional interfaces instead of custom ones, and modern enums as enum-as-strategy and enum singletons. Performance tradeoffs and concrete refactor patterns are shown.
AI-written summary · about
chapters (7)
- 0:00Introduction and book overview
- 3:12New features in Effective Java 3rd edition
- 10:49Factory methods and immutability
- 29:00Functional interfaces and lambdas
- 39:10Method references in Java 8
- 44:30Advanced enum usage
- 50:05Summary and Q&A
related talks
47mRevisiting Effective Java in 2019
23mEffective Java
32mGetting the Most from Modern Java
01h 11mModern Java: This is not your father's Java anymore
43mRolling with New Java Enhancements: Practical Design Patterns
02h 41mCruising Along with Java: Benefiting from the Modern Features
43mKeeping Up With Java
43mFrom Effective Java to Effective Kotlin
