Learning Java Lambdas

Understand and utilize Java Lambdas
Preview in Mapt
Code Files

Learning Java Lambdas

Toby Weston

1 customer reviews
Understand and utilize Java Lambdas
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $23.99
Save 58%
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.00
$29.99
$29.99 p/m after trial
RRP $23.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Learning Java Lambdas Book Cover
Learning Java Lambdas
$ 23.99
$ 10.00
Learning JavaScript Data Structures and Algorithms - Third Edition Book Cover
Learning JavaScript Data Structures and Algorithms - Third Edition
$ 35.99
$ 10.00
Buy 2 for $20.00
Save $39.98
Add to Cart

Book Details

ISBN 139781787282087
Paperback114 pages

Book Description

In this short book, we take an in-depth look at lambdas in Java, and their supporting features. The book covers essential topics, such as functional interfaces and type inference, and the key differences between lambdas and closures. You will learn about the background to functional programming and lambdas, before moving on to understanding the basic syntax of lambdas and what differentiates these anonymous functions from standard anonymous classes. Lastly, you'll learn how to invoke lambdas and look at the bytecode generated.

After reading this book, you'll understand lambdas in depth, their background, syntax, implementation details, and how and when to use them. You'll also have a clear knowledge of the difference between functions and classes, and why that's relevant to lambdas. This knowledge will enable you to appreciate the improvements to type inference that drive a lot of the new features in modern Java, and will increase your understanding of method references and scoping.

Table of Contents

Chapter 1: Introduction
The road to modern Java
Chapter 2: Lambdas Introduction
λs in functional programming
Functions vs classes
λ basic syntax
Chapter 3: Lambdas in Depth
Functional interfaces
Type inference improvements
Method references
Scoping
Exception handling
Lambdas vs closures
Bytecode recap
Descriptors
Converting a method signature
Code examples
Example 1
Example 2
Example 3
Example 4
Example 4 (with method reference)
Example 5
Summary

What You Will Learn

  • What a lambda is and how it differs from other Java features
  • How to use lambdas effectively in your own projects
  • The use of method references and advanced scoping
  • The difference between lambdas and closures
  • The differences in bytecode produced when using lambdas

Authors

Table of Contents

Chapter 1: Introduction
The road to modern Java
Chapter 2: Lambdas Introduction
λs in functional programming
Functions vs classes
λ basic syntax
Chapter 3: Lambdas in Depth
Functional interfaces
Type inference improvements
Method references
Scoping
Exception handling
Lambdas vs closures
Bytecode recap
Descriptors
Converting a method signature
Code examples
Example 1
Example 2
Example 3
Example 4
Example 4 (with method reference)
Example 5
Summary

Book Details

ISBN 139781787282087
Paperback114 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Java 9 with JShell Book Cover
Java 9 with JShell
$ 39.99
$ 10.00
Java 9 Regular Expressions Book Cover
Java 9 Regular Expressions
$ 27.99
$ 10.00
Java: Data Science Made Easy Book Cover
Java: Data Science Made Easy
$ 67.99
$ 10.00
Learning JavaScript Data Structures and Algorithms - Third Edition Book Cover
Learning JavaScript Data Structures and Algorithms - Third Edition
$ 35.99
$ 10.00
Learn Java in 7 days Book Cover
Learn Java in 7 days
$ 31.99
$ 10.00
Full Stack Angular for Java Developers Book Cover
Full Stack Angular for Java Developers
$ 39.99
$ 10.00