|
Answer» Here are the newly added features of Java 8: | FEATURE Name | Description |
|---|
| Lambda expression | A function that can be shared or referred to as an object. | | Functional Interfaces | Single abstract method interface. | | Method References | Uses function as a PARAMETER to invoke a method. | | Default method | It PROVIDES an implementation of methods within interfaces enabling 'Interface evolution' facilities. | | Stream API | Abstract layer that provides pipeline processing of the data. | | Date Time API | New improved joda-time inspired APIs to overcome the drawbacks in previous versions | | Optional | Wrapper class to check the NULL values and helps in further processing based on the value. | | Nashorn, JavaScript Engine | An improvised version of JavaScript Engine that enables JavaScript executions in Java, to REPLACE Rhino. |
|