Skip to Content
Java Closures and Lambda
book

Java Closures and Lambda

by Robert Fischer
March 2015
Intermediate to advanced content levelIntermediate to advanced
220 pages
6h 11m
English
Apress

Overview

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
  • Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
    and much more.
    Start your free trial

    You might also like

    Java EE 8 Development with Eclipse

    Java EE 8 Development with Eclipse

    Ram Kulkarni
    Mastering Java 11 - Second Edition

    Mastering Java 11 - Second Edition

    Dr. Edward Lavieri Jr., Mandar Jog
    Java: Data Science Made Easy

    Java: Data Science Made Easy

    Richard M. Reese, Jennifer L. Reese, Alexey Grigorev
    Java 11 Cookbook - Second Edition

    Java 11 Cookbook - Second Edition

    Nick Samoylov, Mohamed Sanaulla

    Publisher Resources

    ISBN: 9781430259992Purchase book