Java 8 Language Capabilities, What's in it for you?
summary
Covers concrete Java 8 changes: lambda expressions and method references replace anonymous inner classes for concise callbacks; new functional interfaces (Consumer, Predicate, Function) power forEach, map, filter and reduce pipelines; Streams provide lazy evaluation and fuse intermediate ops so findFirst returns Optional (example returns Optional 8 for first even >3 then doubled); default methods let interfaces evolve; runtime uses invokeDynamic to avoid class bloat; switching to parallelStream often makes the same pipeline concurrent — stock example finds Amazon at $331.33 in ~25s.
AI-written summary · about
chapters (27)
- 0:00Introduction
- 2:45Example
- 4:37Iterators
- 9:38Anonymous Inner Classes
- 14:39Refactoring
- 16:24Parameter Handling
- 17:56Method Reference
- 19:17Recap
- 20:22Looking at the code
- 21:22Running the code
- 22:38What happens when you write lambdas
- 23:10Whats in the directory
- 23:47Act of Karma
- 24:51Invoke Dynamic
- 25:57Functional Interfaces
- 27:42Declaration Style
- 28:51Primitive Obsession
- 29:31Stream
- 36:26Interfaces
- 40:11Classes
- 40:41Calling Methods
- 43:24Coalition Between Methods
- 43:52Collision Between Methods
- 46:09Interface Evolution
- 48:00total values
- 51:05predicates
- 54:32lambda expression
related talks
50m10+ new features you ought to know using Java 8
01h 07mJava SE: Lambdas, Streams & Future Directions
52mFunctional Programming with Java 8
49mJava 8: the good, the bad and the ugly
54mBack to the Future - Java 8 is here!
38mJava 8: Functional programming
37mPragmatic Functional Refactoring with Java 8
02h 39mJava 9 and Beyond
