Java 10/11 New Features - What’s New in Java?

Java 10/11 New Features - What’s New in Java?

Java JDK 10 is an implementation of JSE 10 (Java Standard Edition) and it was released on March 20, 2018.

The upcoming JDK 11, due in Sept2018, will be a long-term support (LTS) version of Java and the LTS releases are due every three years.

Java 10 is the fastest release of Java in its 23 years history. The Java 10 delivers 13 Java JEPs (Enhancement Proposals). You can download Java JDK 10

Added New Features of Java JDK 10 -

1) Better Docker support and technologies awareness

2) Local Variable Type Inference - It is the biggest new feature in Java 10 and it only real developer feature and we will be able to declare variables without having to specify the associated type i.e.

var arraylist = new ArrayList<String>();  // infers ArrayList<String>
var stream = arraylist.stream();          // infers Stream<String>

Instead of -

List<String> arrayList = new ArrayList<String>();
Stream<String> stream = getStream();

3) Parallel full garbage collection for the G1 garbage collector

4) Thread-Local Handshakes

5) Application class-data sharing to optimize start-up time and footprint

For more detail...

要查看或添加评论,请登录

Anil Singh的更多文章

社区洞察

其他会员也浏览了