O'Reilly logo

OCA Java SE 8 Programmer Study Guide (Exam 1Z0-808) by Budi Kurniawan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10

Lambda Expressions

The lambda expression is the most important new feature in Java SE 8. Long considered a missing feature in Java, it has  made the Java language complete. At least for now. In this chapter you will learn what lambda expressions are and why they are a nice addition to the language. You will also be introduced to new technical terms such as single abstract method (SAM) and functional interface.

Before you get acquainted with lambda expressions, however, you should first learn about anonymous inner classes. This is because a lambda expression is basically a shorter way of doing the same thing with an anonymous inner class. Knowing what anonymous inner classes are helps you understand lambda expressions better. The first ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required