Since Java 9 Oracle’s move towards a faster release cycle means that more features and abilities are coming our way, faster than ever before. The Java Platform, Standard Edition 11 Development Kit (JDK 11) is a feature release of the Java SE platform. It contains new features and enhancements in many functional areas.
In this series we will look at the features and changes in Java 11, and how it's benefit or affecting us as Java Developer.
Blogs in this series:
What's New in Java 11What are the features and enhancements in Java 11, and how will it be different from previous version and the change on the way we code. This post is basically a very short summary of each JEP as documented for JDK 11.
Tutorials in this series:
Java 11 - Nest-Based Access Control (JEP 181)Nest is an access-control context that introduced in Java 11. It's aligns with the existing notion of nested types in the Java programming language
Java 11 - java.lang.Class Changes for Nest-Based Access Control (JEP 181)Start in Java 11, membership in a nest is exposed through the new getNestHost and getNestMembers methods of java.lang.Class
Introduction to Java 11 Standarized HTTP Client APIThe HTTP Client API is now part of the Java SE 11 standard. The module name and the package name of the standard API is java.net.http. The API provides high-level client interfaces to HTTP (versions 1.1 and 2) and low-level client interfaces to WebSocket.
Multiple Requests Using HTTP/1.1 VS HTTP/2The Java HTTP Client supports both HTTP/1.1 and HTTP/2. By default the client will send requests using HTTP/2. Requests sent to servers that do not yet support HTTP/2 will automatically be downgraded to HTTP/1.1
HTTP/2 Server Push and Handling Push PromisesServer push is a method in HTTP/2 which allows server to send multiple responses for a single request. This feature decreases the latency in loading a web-page.
Java 11 - Local-Variable Syntax for Lambda Parameters (JEP 323)Java 11 allows local var syntax to be used in lambda expressions (JEP 323). One of the benefit is that modifiers, notably annotations, can be applied to local variables and lambda formals without losing brevity.
Java 11 - Flight Recorder (JEP 328)In this article, we take a look at how to leverage the Java Flight Recorder (JFR) feature as part of Java 11, which provide a low-overhead data collection framework for troubleshooting Java applications and the HotSpot JVM.
Java 11 - Remove the Java EE and CORBA Modules (JEP 320)Java 11, through JEP 320 aims to remove the Java EE and CORBA modules from the Java SE Platform and the JDK. The removal of these modules is not without impact. In this article, we will learn what the impact of this removal, and how to work around it.
Using JAXB in Java 11JAXB is a framework to map Java classes to XML representations. JAXB enables to marshal Java objects into XML and unmarshal XML back into Java objects. In Java 11, JAXB has been removed from JDK and we need to add it to the project as a separate library.