InterviewSolution
| 1. |
New features in Java 11 |
|
Answer» Some of the new features of Java 11 are given as follows: 1. LOCAL-Variable Syntax for Lambda Parameters The Local-Variable Type Inference was introduced by JDK 10 that simplified the code as the type of the local variable did not need to be EXPLICITLY STATED. This syntax is extended by JEP 32 for use to the parameters of Lambda expressions. 2. Single-File Source-Code Programs Java is criticized as quite a complex language. However, JEP 330 simplifies this a little bit by eliminating the need to compile a single file application. 3. HTTP Client (Standard) The Java SE 11 standard contains the HTTP client API as its part. A new module and package is introduced i.e. java.net.http. Some of the main types defined in this are as follows:
4. Remove the Java EE and CORBA Modules There are 6 modules INCLUDED in the java.se.ee meta-module that are not a part of the Java SE 11 standard. The modules that are affected are:
5. New APIs There are a lot of APA’s that are included in the JDK 11 result. There are available as the HTTP is a part of the standard and also because the Flight Recorder is included. |
|