Want to receive a weekly email containing
the scoop on our new titles along with the
occasional special offer? Just click the button.
(You can always unsubscribe later by editing your
account information).

Give us an email and a password (you can use the password later to log in and
change your preferences). We'll send you a newsletter roughly once a week.

Functional Programming in Java: Harnessing the Power of Java 8 Lambda Expressions

by Venkat Subramaniam

The chart shows the approximate number of words in each chapter of Functional Programming in Java per week. The latest numbers are highlighted—mouse over prior weeks to see their figures.

Get ready to program in a whole new way. Functional Programming in Java will help you quickly get on top of the new, essential Java 8 language features and the functional style that will change and improve your code. This short, targeted book will help you make the paradigm shift from the old imperative way to a less error-prone, more elegant, and concise coding style that’s also a breeze to parallelize. You’ll explore the syntax and semantics of lambda expressions, method and constructor references, and functional interfaces. You’ll design and write applications better using the new standards in Java 8 and the JDK.

Buy Now

Select a DRM-free Format:

eBook + Paper Book
($41.00)
In Stock

Paper Book
($33.00)
In Stock

eBook
($21.00)
In Stock

Buy the eBook and get these DRM-free formats delivered immediately:

epub (for iPhone/iPad, Android, eReaders)

mobi (for Kindle)

PDF

We can automatically send them to your
Dropbox.
(You'll need to log in to enable these options.)

About this Book

196 pages

Published: 2014-02-28

Release: P1.0 (2014-03-19)

ISBN: 978-1-93778-546-8

Lambda expressions are lightweight, highly concise anonymous methods backed by functional interfaces in Java 8. You can use them to leap forward into a whole new world of programming in Java. With functional programming capabilities, which have been around for decades in other languages, you can now write elegant, concise, less error-prone code using standard Java. This book will guide you though the paradigm change, offer the essential details about the new features, and show you how to transition from your old way of coding to an improved style.

In this book you’ll see popular design patterns, such as decorator, builder, and strategy, come to life to solve common design problems, but with little ceremony and effort. With these new capabilities in hand, Functional Programming in Java will help you pick up techniques to implement designs that were beyond easy reach in earlier versions of Java. You’ll see how you can reap the benefits of tail call optimization, memoization, and effortless parallelization techniques.

Java 8 will change the way you write applications. If you’re eager to take advantage of the new features in the language, this is the book for you.

What You Need

Java 8 with support for lambda expressions and the JDK is required to make use of the concepts and the examples in this book.

About the Author

Dr. Venkat Subramaniam is an award-winning author, founder of Agile
Developer, Inc., and a professor at the University of Houston. He’s a
regularly invited speaker at international conferences, a Java Champion, and
has received the JavaOne Rockstar award multiple times.

Comments and Reviews

Venkat has done a superb job of bringing core functional language concepts to
the Java ecosystem. Once you have peered into his looking glass of functional
language design, it will be hard to go back to old-school imperative programming.

—Stephen ChinJava technology ambassador and JavaOne content chair

The introduction of lambdas to Java 8 has made me excited to use Java again,
and Venkat’s combination of technical details and best practices make it easy to
apply functional thinking to this new feature.

—Kimberly D. BarnesSenior software engineer

Java 8 lambda expressions are an incredibly important new language feature.
Every Java developer should read this excellent book and learn how to use them
effectively.

—Chris Richardsonsoftware architect and Java champion

Many can explain lambdas; Venkat makes them useful.

—Kirk PepperdineJava performance tuning expert

I highly recommend this book for Java programmers who want to get up to speed
with functional programming in Java 8. It is a very concise book but still provides
a comprehensive overview of Java 8.