Overview
Explore the strengths and weaknesses of Java 8 in this 51-minute conference talk from Devoxx. Delve into the practical implications of Java 8's new code constructions, evaluating their real-world impact. Learn about functional interfaces, lambda expressions, and the Comparator interface. Examine the nuances of type inference, parentheses usage, and exception handling in Java 8. Investigate the pros and cons of Optional and discover best practices for working with Java 8 Streams. Gain insights on potential pitfalls, including infinite streams and parallel processing. Walk away with a comprehensive understanding of how to effectively leverage Java 8's features while avoiding common mistakes.
Syllabus
Java (8)
Functional Interfaces
Java 8 Comparator
Abstraction
Writing a lambda
Puzzler
Type Inference
Parentheses
Exception handling
Checked Exceptions & Lambda
Exception Utility
Using Optional
JAVA 8 Streams
Stream Example
forEach ??
Only use a Stream once
Consume the stream
Multiple filters
Infinite stream
Watch out with parallel
Summary
Taught by
Devoxx