Java Closures and Lambda (Paperback, 1st ed.)


Pro Java Closures and Project 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. Java language designer Daniel Smith states the goals of Project Lambda as being to make dramatic and necessary enhancements to the programming model, smooth out rough edges in the language, preserve compatibility, all while maintaining the essence of the Java language as you've come to know it. The changes in Java 8 are significant. Syntax and usage of the language are changed considerably with the introduction of closures and lambda expressions. Pro Java Closures and Project Lambda 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 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 cores.* Refactor existing code to take advantage of newly-possible closures and lambda expressions. Who this book is for Pro Java Closures and Project Lambda is aimed at Java developers interested in keeping up with the latest developments in the language. The book is of particular interest to those wanting to produce shorter and more readable code by taking advantage of language enhancements coming out of Project Lambda.

R1,819
List Price R2,075
Save R256 12%

Or split into 4x interest-free payments of 25% on orders over R50
Learn more

Discovery Miles18190
Mobicred@R170pm x 12* Mobicred Info
Free Delivery
Delivery AdviceShips in 10 - 15 working days


Toggle WishListAdd to wish list
Review this Item

Product Description

Pro Java Closures and Project 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. Java language designer Daniel Smith states the goals of Project Lambda as being to make dramatic and necessary enhancements to the programming model, smooth out rough edges in the language, preserve compatibility, all while maintaining the essence of the Java language as you've come to know it. The changes in Java 8 are significant. Syntax and usage of the language are changed considerably with the introduction of closures and lambda expressions. Pro Java Closures and Project Lambda 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 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 cores.* Refactor existing code to take advantage of newly-possible closures and lambda expressions. Who this book is for Pro Java Closures and Project Lambda is aimed at Java developers interested in keeping up with the latest developments in the language. The book is of particular interest to those wanting to produce shorter and more readable code by taking advantage of language enhancements coming out of Project Lambda.

Customer Reviews

No reviews or ratings yet - be the first to create one!

Product Details

General

Imprint

Apress

Country of origin

Germany

Release date

March 2015

Availability

Expected to ship within 10 - 15 working days

First published

October 2013

Authors

Dimensions

254 x 178 x 16mm (L x W x T)

Format

Paperback

Pages

220

Edition

1st ed.

ISBN-13

978-1-4302-5998-5

Barcode

9781430259985

Categories

LSN

1-4302-5998-1



Trending On Loot