eBook Excerpt

Java 8 in Action

Raoul-Gabriel Urma, Software Engineer, data Artisans

Mario Fusco, Software Engineer, data Artisans

Audience: Architects, Managers

Technical level: Introductory

While the term "lambda expression" may sound abstract and academic, Java 8 Lambdas can have a big impact on how you program every day. In simplest terms, a lambda expression is a function—a bit of code—that you can pass to another method as an argument. Thus, you can cope with changing requirements by using a behavior, represented by a lambda, as a parameter. Java 8's functional programming features, like lambdas and the new Stream API that enables a cleaner way to iterate through collections, can help you write concise, maintainable code that scales easily and performs well on multicore architectures.

Java 8 in Action is a clearly-written guide to Java 8 lambdas and functional programming in Java. It begins with a practical introduction to the structure and benefits of lambda expressions in real-world Java code. The book then introduces the Stream API and shows how it can make collections-related code radically easier to understand and maintain. Along the way, you'll discover new FP-oriented design patterns with Java 8 for code reuse, code readability, exception handling, data manipulation, and concurrency. For developers also exploring other functional languages on the JVM, the book concludes with a quick survey of useful functional features in Scala and Clojure.

The free sample PDF available here includes a subset of the book (Chapters 1-3, 78 pages). All registrants qualify for the Typesafe discount and will save 40% on the full book "Java 8 in Action" by referencing promotional code tsj8ia. If you are interested in purchasing the full book get it here. Offer only valid at manning.com.

Grab your copy

Please enter your information to receive your E-book chapter(s) of Java 8 in Action and be signed up for the Lightbend Newsletter. Once you've entered your information and submitted the form, the PDF will be emailed to your address.

*Required: The information you provide will be used in accordance with the terms of our privacy policy. **Required Opt-In: I would like to receive the monthly newsletter, educational resources (white papers, ebooks, webinars, reports), and event information via email. You can unsubscribe at anytime or manage your email preferences here.

ABOUT AUTHOR(S)

Raoul-Gabriel Urma, Software Engineer, data Artisans

Mario Fusco, Software Engineer, data Artisans

About Lightbend

Lightbend (Twitter: @Lightbend) provides the leading Reactive application development platform for building distributed systems. Based on a message-driven runtime, these distributed systems, which include microservices and streaming fast data applications, can effortlessly scale on multi-core and cloud architectures. Many of the most admired brands around the globe are transforming their businesses with our platform, engaging billions of users every day through software that is changing the world. For more information on Lightbend, visit: lightbend.com