Header Ads

Java 12 features


Java 12 features






Oracle's VP of Java platform group, Georges Saab said, "The faster release schedule is about getting new functionality into the hands of developers quickly. It's about providing incremental changes that are less disruptive for developers, that continue to evolve and improve the platform and that keep Java relevant."

Here are eight enhancements in Java 12 that will boost the productivity of developers:

1. Low-Pause-Time Garbage Collector

This is an experimental feature codenamed as "Shenandoah", which adds a new algorithm to reduce GC pause times by dealign with evacuation work. The garbage collector runs concurrently with Java threads.



2. Microbenchmark Suite

The update adds a basic suite of microbenchmarks to the JDK source code. It makes it easier for developers to run existing microbenchmarks and create new ones.



3. Switch Expressions

The feature is still in a preview mode. It basically extends the switch statement so that it can be used as either a statement or an expression. Switch expressions can either use traditional or simplified scoping and control flow behaviour. The changes will simplify everyday coding.



4. JVM Constants API

Java 12 features introduces an API to model nominal description of key class-file and run-time artifacts.



5. One AArch64 Port

This latest version of Java removes the sources related to arm64 port. At the same time, it retains 32-bit ARM port and 64-bit Aarch64 port.



6. Abortable Collections for G1


Java 12 makes G1 mixed collections abortable if they exceed the pause target.



7. Promptly Return Unused Committed Memory from G1

The feature enhances the G1 garbage collector to automatically return Java heap memory to the operating system in case of application idling.



8. Default CDS Archives

It enhances the JDK build process. Java 12 features uses the default class list, on 64-bit platforms to generate class data-sharing (CDS) archives.


Today's inspirational quotes: 

"The best way to predict the future is to create it"




Steps to Subscribe my blog in 15 secs:
1. Enter your mail id in "Subscribe" box.
2. Enter Captcha for verification.
3. A mail will be received with link in your mail id.Just Click on link  and  then Done .Thank you for subscribing :)

Happy Reading.Happy Learning!!! See you in next post :)

No comments

Note: Only a member of this blog may post a comment.