Released March 20, 2018, Java 10, is the first upgrade in the six-month update cycle announced by Oracle. It introduces a number of changes that will further simplify the writing of Java applications. The latest version of Java software includes many new features, extensions and patches to increase the efficiency of Java programming and support.
The new version brings you new products that are described in the Java Enhancement Proposal (JEP) documentation. We will only mention the most important of them:
Type inference has been extended to declarations of local variables. Thanks to this, you will not have to write long with declarations of local variables.
The default Java garbage collector, better known as the garbage collector, uses a single-thread mark-sweep-compact algorithm. When it can not recover memory fast enough, it returns to the old parallel GC. To reduce the worst delays, the new Garbage Collector has also been made parallel.
The Class-Data Sharing mechanism has been developed for storing application classes in a shared archive. This reduces the size of Java processes in memory, facilitates the use of archived classes and speeds up the running of processes.
A new way to execute a callback in threads that does not need to invoke virtual machine safepoint. This allows you to pause individual threads, not all or none.
In JDK, a default set of root certificates for Certification Authorities (CA) appears. Opening them is to make open versions of OpenJDK more attractive to developers and reduce the differences between them and Oracle compilations.
You will basically be able to transfer almost anything to the switch, and then in the case blocks, the pattern will be adjusted accordingly. Ultimately, something that is called deconstruction of objects is also supposed to work here.
Of course, Java 10 introduces many more new solutions. Recently, we have been paying special attention to the development of the Java platform. It seems that since the release of Java 9 in September last year, the entire platform has made a 180-degree turn. They presented us with modular Java, and Mark Reinhold announced that JDK 10 will be released in March 2018 and that Java is going through a semi-annual publishing cycle. No more waiting for years for a new version of Java. Now we will receive new versions every 6 months, and long-term versions of support will be available every 3 years, starting from JDK 11 in September 2018.
Oracle has big plans for the Java platform in the next few years, so you can not get used to the Java version that is up to date at the moment.