Introduction
Java 8: Is it for me?
()
Are you ready for Java 8?
()
Explore the code challenge environment
()
1. Date and Time
LocalDate, LocalTime, and LocalDateTime
()
ZonedDateTime and ZoneId
()
Clock
()
Comparing dates and times
()
DateTimeFormatter
()
Period
()
Duration
()
Altering dates and times
()
Converting Date and Calendar
()
Solution: Filtering by date
()
2. Base64 Encoding and Decoding
What is Base64?
()
Encoding and decoding using java.util.Base64
()
Solution: Encode with Base64
()
3. Interfaces in Java 8
Static methods
()
Default methods
()
Functional interfaces
()
Built-in functional interfaces
()
Solution: Implement a static method
()
4. Lambda Expressions
Basic Lambda expressions
()
Lambda expressions with parameters
()
Lambda expressions body
()
Lambdas as method parameters
()
Lambda expressions and variable scope
()
Solution: Write a lambda expression
()
5. Stream API
What are streams and the stream pipeline?
()
Creating streams
()
Terminal operations on streams
()
Intermediate operations on streams
()
Parallel streams
()
Solution: Replace loops with the Stream API
()
6. Optional Class in Java
Why do you need the Optional class?
()
Creating and using Optionals
()
Methods on the Optional class
()
Challenge
()
Solution
()
7. Other Java 8 Features
String in switch statements
()
Array parallel sorting
()
Unsigned integer arithmetic
()
Improved concurrent API
()
Removal of the permanent generation in memory
()
Challenge
()
Solution
()
8. Later than Java 8 Features
What is not yet in Java 8?
()
Conclusion
Where to go next in Java
()