Java 12
What's new in Java 12?
Some of the key new features in Java 12 include:
- JIT compiler improvements: The JIT compiler has been improved to generate faster code, resulting in improved performance for Java applications.
- New garbage collector: A new garbage collector, called Shenandoah, has been added to Java 12. Shenandoah is a low-pause-time garbage collector that can improve the performance of applications that are sensitive to pauses in garbage collection.
- New switch expression: A new switch expression has been added to Java 12. The switch expression provides a more concise and readable way to write switch statements.
- Local-variable type inference: Local-variable type inference has been added to Java 12. Local-variable type inference allows the compiler to infer the type of a local variable from its initializer.
- New I/O APIs: Several new I/O APIs have been added to Java 12, including the Files.mismatch() method and the PathMatcher interface.
In addition to these new features, Java 12 also includes a number of other improvements, such as:
- Improved performance for server-side applications
- Improved security
- Better support for containers
- Simplified development tools