Skip to main content

Posts

Showing posts from December, 2020

Enhancement & New API in JDK 11

 JDK 11 is the open-source reference implementation of version 11 of the Java SE Platform as specified by JSR 384 in the Java Community Process. The final release date  25 September 2018. In this post, we are going to discuss the enhancement and new API in JDK 11 in brief. Let's categories them into two parts. Enhancement and new API changes that are visible to Developers . Enhancement and new API changes that are  not visible to Developers . Now let's focus on the first part and in the later posts, we will discuss the second part.  What are the enhancements in JDK 11? JEP 323 : Local-Variable Syntax for Lambda Parameters Type inference( JEP 286 ) was introduced in JDK 10 for local variables. After JDK 10 , you don't need to explicitly state the type of a local-variable but you can use var. But this was not available for lambda's formal parameters.  Before JDK 11 From JDK 11 As you already know that the lambda's formal parameters support type inferen...