Java Reference
In-Depth Information
CHAPTER 2
New Features of Java 8
Java 8 has introduced a magnitude of new features, making it one of the most significant
releases of Java in years. This chapter covers a handful of the new features of Java 8 and
includes short examples of each. These recipes are meant to provide a brief overview of
the some new features in Java 8 and to get you up and running quickly using them. This
is by no means a comprehensive list of the new features that were introduced in Java 8,
but more of a precursor of what to expect throughout this topic. At the end of each re-
cipe, you're directed to the chapter in this topic, or to an another resource, that covers
the topic in more detail.
Java Language Enhancements
The release of Java 8 introduced a number of new features to the language, making it
more productive, easier to manage, and more efficient. This section covers some of
these new features via a variety of recipes.
2-1. Passing Functionality as a Method
Argument
Problem
You want to write an action for a JavaFX button without generating an anonymous inner
class.
Search WWH ::




Custom Search