Are you looking for detailed information about all the interesting features introduced in JDK 17? Are you also would like various terminologies such as LTS or JEP? If so, then you reached the right place. In this article, we will explore new features in JDK 17 release.
A) What is LTS in Java?
LTS is an abbreviation for Long-term Support. It is a product life cycle management policy. With this policy, the software edition is supported longer than the software standard edition.
B) What is JEP in Java?
JEP is an abbreviation for JDK Enhancement Proposal. Oracle Corporation has drafted this process to collect proposals for enhancements to the Java Development kit i.e. JDK.
C) What are the new features in Java 17?
Java 17 is one of the major releases and comes with various interesting features. In this article we will explore the features below :
1. JEP 411: Deprecate the security manager
2. JEP 412: Memory API and Foreign Function
3. JEP 414: Vector API
4. JEP 415: Deserialization Filters
1 . JEP 411: Deprecate the security manager
The security manager API which was used to define security policy for an Application is deprecated with JDK 17 release. The security manager is deprecated as this API is not commonly used. one of the basic features of a security manager is a blocking system:: exit. If applications continue to use the security manager then an alert message will be issued.
2. JEP 412: Memory API and Foreign function
With JEP 412 the new API is introduced and these are Foreign Memory Access API and the foreign linker API with these API'S we can invoke code outside of the JVM and also security access foreign memory Here, foreign memory means the memory which is not handled by JVM.
3. JEP 414: Vector API
These Vector APIs are part of JDK 16 are also enhanced in JDK 17 to express vector computations on supported CPU architecture at runtime. These are reliable for compilation and performance on AArch 64 and x64 architectures.
4. JEP 415: Deserialization Filters
With a JVM-wide filter factory, we can allow applications to configure context-specific and dynamically selected deserialization filters. This will be helpful to prevent serialization attacks.
Learn more about Java here -