0 votes
in JAVA by
Tell me 5 features introduced in JDK 1.8?

1 Answer

0 votes
by

This is the follow-up question of the previous one. Java 8 is path breaking release in Java's history, here are the top 5 features from JDK 8 release

Lambda expression, which allows you pass an anonymous function as object.

Stream API, take advantage of multiple cores of modern CPU and allows you to write succinct code.

Date and Time API, finally you have a solid and easy to use date and time library right into JDK

Extension methods, now you can have static and default method into your interface

Repeated annotation, allows you apply the same annotation multiple times on a type

Related questions

0 votes
0 votes
asked Apr 8, 2023 in Amazon QuickSight by Robindeniel
0 votes
asked May 31, 2022 in JAVA by Robin
...