Modern Java: Beyond Version 8
summary
Shows how Java 8 test code for verifying an accounts table gets shorter and safer using var for local type inference, Streams instead of loops, and new Stream ops that turn an 11-item list into 3 with takeWhile or into 8 with dropWhile. Demonstrates switch expressions (arrows and yield) to return IDs, replaces POJOs with records, embeds JSON with text blocks, and uses List.of/Map.of; examples use Selenium-style web elements and Java 9–16 features.
AI-written summary · about
chapters (11)
- 0:00Start
- 6:23Only works for local variables
- 6:42Not allowed in headers
- 11:55New line for each method call
- 15:11Sort for deterministic results
- 19:38Cannot mix and match - and :yield
- 20:08Can throw Exceptions
- 23:40Records can be instantiated
- 23:59Records are immutable
- 24:19Accessors don't start with get
- 27:02Text cannot begin on same line as
related talks
34mNo Hate on Java 8, But 9–14 Reign Supreme
32mGetting the Most from Modern Java
01h 00mLatest Java Best Practices
43mLearning modern Java the playful way
50m10+ new features you ought to know using Java 8
38mJava 8: Functional programming
02h 41mCruising Along with Java: Benefiting from the Modern Features
55mTransforming Your Code to Java 8
