Mastering Lambdas: Java Programming in a Multicore World
- Length: 208 pages
- Edition: 1
- Language: English
- Publisher: McGraw-Hill Osborne Media
- Publication Date: 2014-10-13
- ISBN-10: 0071829628
- ISBN-13: 9780071829625
- Sales Rank: #868144 (See Top 100 Books)
The Definitive Guide to Lambda Expressions
Mastering Lambdas: Java Programming in a Multicore World describes how the lambda-related features of Java SE 8 will enable Java to meet the challenges of next-generation parallel hardware architectures. The book explains how to write lambdas, and how to use them in streams and in collection processing, providing code examples throughout. You’ll learn how to use lambda expressions to take full advantage of performance improvements provided by today’s multicore hardware. This Oracle Press book covers:
- Why lambdas were needed, and how they will change Java programming
- Syntax of lambda expressions
- The basic operation of streams and pipelines
- Using collectors and reduction to end pipelines
- Creating streams
- Spliterators, the fork/join framework, and exceptions
- Examining stream performance with microbenchmarking
- API evolution using default methods
Table of Contents
Chapter 1 Taking Java to the Next Level
Chapter 2 The Basics of Java Lambda Expressions
Chapter 3 Introduction to Streams and Pipelines
Chapter 4 Ending Streams: Collection and Reduction
Chapter 5 Starting Streams: Sources and Spliterators
Chapter 6 Stream Performance
Chapter 7 API Evolution with Default Methods