Java Closures and Lambda

Editorial Reviews

Java Closures and Lambda introduces you to significant new changes to the Java language coming out of what is termed Project Lambda. These new changes make their debut in Java 8, and their highlight is the long-awaited support for lambda expressions in the Java language. You’ll learn to write lambda expressions and use them to create functional interfaces and default methods for evolving APIs, among many other uses. The changes in Java 8 are significant. Syntax and usage of the language are changed considerably with the introduction of closures and lambda expressions. This book takes you through these important changes from introduction to mastery. Through a set of clear examples, you’ll learn to refactor existing code to take advantage of the new language features. You’ll learn what those features can do for you, and when they are best applied. You’ll learn to design and write new code having these important new features in mind from the very beginning. Clearly explains the fantastic benefits resulting from Project Lambda Explains the syntax and IDE support for the new features Shows how to streamline your code by bringing some of the benefits of functional programming to the Java language Illustrates parallelism in closures through Stream and Spliterator objects Explains API evolution by adding methods to existing interfaces without breaking existing interface implementations, a technique addressing potential multiple inheritance issues What you’ll learn Encapsulate key bits of logic into anonymous functions without the need for anonymous classes Define closures to be used as generators of comparison functions Define map, filter, and reduce functions that are useful in working with lists and other collections Trap and handle exceptions involving lambdas and closures, including the passing of exception-type parameters Anticipate and provide for concurrency so that your code successfully scales across multiple CPU co

Table of Contents

Chapter 1: Java 8: It’s a Whole New Java
Chapter 2: Understanding Lambdas in Java 8
Chapter 3: Lambda’s Domain: Collections, Maps, and Streams
Chapter 4: I/O with Lambdas
Chapter 5: Data Access with Lambdas
Chapter 6: Lambda Concurrency
Chapter 7: Lambdas and Legacy Code
Chapter 8: Lambdas in Java Bytecode
Appendix A: A Tour of Paradigms

Book Details

  • Author:
  • Pages: 220 pages
  • Edition: 1
  • Publication Date: 2015-03-04
  • Publisher:
  • Language: English
  • ISBN-10: 1430259981
  • ISBN-13: 9781430259985

Book Preview

Click to Look Inside This eBook: Browse Sample Pages

PDF eBook Free Download

Note: There is a file embedded within this post, please visit this post to download the file.

The post Java Closures and Lambda appeared first on Fox eBook.

Read Source: Java Closures and Lambda»

Leave a Reply

Your email address will not be published.