Java SE 8 is perhaps the largest change to Java in its history, led by its flagship feature—lambda expressions. If you’re an experienced developer looking to adopt Java 8 at work, this short guide will walk you through all of the major changes before taking a deep dive into lambda expressions and Java 8’s other big feature: the Streams API.
Author Raoul-Gabriel Urma explains how improved code readability and support for multicore processors were the prime movers behind Java 8 features. He’ll quickly get you up to speed on new classes including CompleteableFuture and Optional, along with enhanced interfaces and the new Date and Time API. You’ll also:
- Understand why lambda expressions are considered a kind of anonymous function
- Learn how lambda expressions and the behavior parameterization pattern let you write flexible and concise code
- Discover various operations and data processing patterns possible when using the Streams API
- Use Collector recipes to write queries that are more sophisticated
- Consider factors such as data size and the number of cores available when using streams in parallel
- Work with a practical refactoring example to bring lambda expressions and streams into focus
Table of contents
- 1. Java 8: Why Should You Care?
- 2. Adopting Lambda Expressions
- 3. Adopting Streams
- Title: Introducing Java 8
- Release date: August 2015
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491934333
You might also like
Grokking Algorithms is a friendly take on this core computer science topic. In it, you'll learn …
Java 8 in Action: Lambdas, streams, and functional-style programming
Java 8 in Action Summary About the Book Every new version of Java is important, but …
Head First Design Patterns, 2nd Edition
You know you don’t want to reinvent the wheel, so you look to design patterns—the lessons …
Fundamentals of Software Architecture
Salary surveys worldwide regularly place software architect in the top 10 best jobs, yet no real …