Revisiting Effective Java in 2020
summary
Summary of what's actually shown: updated Effective Java advice for Java 8+ with concrete code: prefer factory methods over public constructors (supports flyweight, caching and API evolution); make objects immutable with private constructor + finals and validate with Guava Preconditions; implement equals/hashCode using Objects helpers and cache hash for hot keys; use JDK functional interfaces (not new ones) — note 40+ functional interfaces exist but six cover most uses; use Comparator.comparingInt and method references, and model behavior with enums (including enum singletons and IntBinaryOperator-based strategies).
AI-written summary · about
chapters (7)
- 0:00Introduction and book overview
- 3:10New features in Effective Java 3rd edition
- 10:56Minimizing mutability with factory methods
- 28:44Functional interfaces and lambdas
- 39:17Method references explained
- 44:22Advanced enum usage in Java
- 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
27mModern Java API Design
43mRolling with New Java Enhancements: Practical Design Patterns
43mFrom Effective Java to Effective Kotlin
01h 00mLatest Java Best Practices
