Java 8 (Java SE 8) is a major feature release.With Java 8 release, java provided support for
- Functional Programming
- JavaScript Engine
- API for Date and Time
- Streaming API, etc..,
New Features in Java 8
Some important features of Java 8 Listed below. We will see more Features in detail in upcoming chapters.Lambda Expression
Lambda Expressions enable you to treat functionality as a method argument, or code as data. Lambda expressions let you express instances of single-method interfaces (referred to as functional interfaces) more compactly.Method Reference
Method references provide easy-to-read lambda expressions for methods that already have a name.Referencing function by their name instead of invoking them directly.Using function as parameter.Default Method
Interface to have default method. Default methods enable new functionality to be added to the interfaces of libraries and ensure binary compatibility with code written for older versions of those interfaces.New Tools
- The jjs command is provided to invoke the Nashorn engine.
- The jdeps command-line tool is provided for analyzing class files.
- Java Management Extensions (JMX) provide remote access to diagnostic commands.
- The jarsigner tool has an option for requesting a signed time stamp from a Time Stamping Authority (TSA).
0 comments:
Post a Comment