1.

Describe the newly added features in Java 8?

Answer»

Here are the newly added features of Java 8:

FEATURE NameDescription
Lambda expressionA function that can be shared or referred to as an object.
Functional InterfacesSingle abstract method interface.
Method ReferencesUses function as a PARAMETER to invoke a method.
Default methodIt PROVIDES an implementation of methods within interfaces enabling 'Interface evolution' facilities.
Stream APIAbstract layer that provides pipeline processing of the data.
Date Time APINew improved joda-time inspired APIs to overcome the drawbacks in previous versions
OptionalWrapper class to check the NULL values and helps in further processing based on the value.
Nashorn, JavaScript EngineAn improvised version of JavaScript Engine that enables JavaScript executions in Java, to REPLACE Rhino.


Discussion

No Comment Found