Java 10: New Features And Enhancements
Java 10: New Features And Enhancements
Here's an overview of what's new and what's been deprecated in JDK 10's release, as well as thoughts on the new release cadence.
Join the DZone community and get the full member experience.Join For Free
Oracle has recently delivered the new Java 10 within the previously announced deadline. It is a feature release of the Java SE platform, which got released on March 20, 2018. It contains various new features and enhancements into many functional areas. Some of its key improvements include enhancements for garbage collection and compilation as well as local variable types.
Georges Saab, vice president of Software Development in Oracle’s Java Platform Group, said that “Oracle is committed to rapidly evolving and delivering new innovations in the Java platform – this being the first in our newly adopted release cycle and licensing model. We’re especially proud of the simplicity of this release, which introduces useful new features, removes unnecessary elements, and is easy for developers to use.”
Java 10 is scheduled to be a short-term release, and its public updates are slated to end in six months. Moreover, JDK 11 will be the next long-term support (LTS) version of Java, which is due in September.
You can download Java 10 by clicking here.
Let’s take a sneak peek into what new features are in Java 10.
These features are defined through the JDK Enhancement Proposals (JEP) process and are mentioned below.
Application Data-Class Sharing
This JEP extends the existing Class-Data Sharing (“CDS”) feature for allowing application classes to be placed in the shared archive in order to improve startup and footprint.
Parallel Full GC for G1
It improves G1 worst-case latencies by making the full GC parallel.
Garbage Collector Interface
It will improve the source code isolation of different garbage collectors by introducing a clean garbage collector (GC) interface.
Consolidate the JDK Forest into a Single Repository
It will combine the numerous repositories of the JDK forest into a single repository to simplify and streamline development.
Local-Variable Type Inference
It will enhance the Java Language to extend type inference to declarations of local variables with initializers and also introduces var to Java, something that is common in other languages.
Remove the Native-Header Generator Tool
It will remove the javah tool from the JDK, since it has been superseded by superior functionality in javac.
It introduces a way to execute a callback on threads without performing a global VM safepoint. Makes it both possible and cheap to stop individual threads and not just all threads or none.
Time-Based Release Versioning
It revises the version-string scheme of the Java SE Platform and the JDK, and related versioning information, for present and future time-based release models.
It provides a default set of root Certification Authority (CA) certificates in the JDK.
Heap Allocation on Alternative Memory Devices
It enables the HotSpot VM to allocate the Java object heap on an alternative memory device, such as an NV-DIMM, specified by the user.
Experimental Java-Based JIT Compiler
It enables the Java-based JIT compiler, Graal, to be used as an experimental JIT compiler on the Linux/x64 platform.
Additional Unicode Language-Tag Extensions
It will enhance the java.util.Locale and related APIs to implement additional Unicode extensions of BCP 47 language tags.
Removed Features and Options in Java 10
This will describe the APIs, features, and options that were removed in Java SE 10 and JDK 10. It may also identify potential compatibility issues that you could encounter when migrating to JDK 10.
Deprecated Features and Options in Java 10
This will describe the deprecated APIs, features, and options that have been identified as deprecated in this release and are subject to removal from future versions of Java SE and the JDK. They should be used with that possibility in mind.
For additional changes and information about this release, you can refer to this.
So overall, it seems that Java 10 is not exactly a cause for alarm, as it doesn’t contain any major changes or improvements. However, it represents the first release in the new, more frequent, and gradual release cycle. It’s impressive enough that Java 10 was delivered as-promised and Just-in-Time like its compiler. The coming time will tell whether the Java community will accept the new delivered model” For developers, it is much more useful than its previous versions.
We know that the popularity of Java is on the rise due to its incredible features. Even after more than 20 years, Java continues to move at an exciting and accelerated pace. So, if you are planning to outsource the development work or hire Java developer then we at ValueCoders are always there for them. Because our web app developers guaranteed SLA’s, have implemented over 4200+ projects, having 13+ years of experience, we are having over 2500 happy customers and provide a zero-billing guarantee.
Published at DZone with permission of Arnab Sarkar , DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.