in JAVA by (6.5k points)
Tell me 5 features introduced in JDK 1.8?

1 Answer

0 votes
by (32.2k points)

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
asked Sep 3, 2019 in JAVA by Robin (14.6k points)
0 votes
asked Apr 8 in Amazon QuickSight by Robindeniel (20.8k points)
0 votes
asked May 31, 2022 in JAVA by Robin (14.6k points)
0 votes
asked Feb 28 in JAVA by rajeshsharma (23.9k points)