What is New in Java 12?

Technical community is waiting for new updates in Java which promise to bring more easiness at working with technology, allow to write clearer code and carry out other safer programming set up. Our team has decided to highlight some new features coming with Java 12.

JEP 189: Shenandoah: A Low-Pause-Time Garbage Collector (Experimental)

This feature is put to use and aided by Redhatbfor aarch64 and amd64, Shenandoah Garbage collector, creates predictable and short GC pauses independent of the heap size. For it to be used, it would be made as an experimental feature, but this feature would not be contained in default (Oracle’s) OpenJDK.

You can use another build.

JEP 230: Microbenchmark Suite

This feature provides a means and a group of related distributed microbenchmarks which makes it easier to evaluate the performance of JDK. Such evaluation is done by the standard on Java Microbenchmark Harness (JMH). This feature would be added to JDK source code.


JEP 325: Switch Expressions

This feature is a preview. Two changes have been made in this feature to switch in Java with this JEP.

One of this change is the case L. The case L is a syntax that discards any break in statements since it is only the statement that is nearest to -> that is applied.

The second change is the switch. The switch can be an arrangement of symbols which denotes numbers and figure. This means that the switch change can have value or can return a value.

JEP 334: JVM Constants API

This is a fantastic and useful tool for handling and influencing classes and the process by which a task is performed. This excellent feature brings forth an API form of computer model such as constant pool which is the key class file and runs time audible distortion that appears in a digital image, audio or video file as a result of applying a lossy compression algorithm. Under this feature, the API would have classes such as constantdesc, classdesc. To obtain the available draft of this API, you can search through…


JEP 341: Default CDS Archives

For you to enjoy the sharing of memory and benefit from a reduction in startup time, Class Data Sharing (CDS) has been developed to give you all this benefit. But the JRE should be installed because Class Data Sharing is not created by default since the

java -Xshare:dump would require to be operated manually. To understand this better, the JDK 11 GA that was initiated at http://jdk.java.net/11/, the lib/server folder doesn’t have the CDS archive. But by making use of this JEP feature, CDS archive can be created through default.

JEP 344: Abortable Mixed Collections for G1

For the target of user-supplied pause time to be reached, this JEP feature enables the Garbage collector to terminate the process of collecting garbage in optional part, if pause time target will not be reached. This is done by dividing the accumulated garbage into two parts: mandatory and optional.

JEP 346: Promptly Return Unused Committed Memory from G1

To return the collected garbage from the G1 garbage collector into memory parts of the operating system after a period in which there is low activity, this JEP feature has been created to achieve this. This is fine because G1 was built only to bring back the memory to the operating system after a full GC.

Overall, timely updates make working with any language more advanced. There is an increasing need for technological features that can make workload and computing much easier for developers in specific domains. For example, in Oracle programming the new features in Java 12 would bring about efficiency and effectiveness. How in fact the updates will be perceived by the technical community, we can only say after a certain period.