O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What's New in Java 12?

Book Description

New Java releases continue to arrive at a rapid pace. The community now receives a new Java version with features and bug fixes about every two months. The latest edition of this ebook examines many added and removed items in Java 12, including a new preview feature that lets you try out functionality not yet ready for production.

Software engineer and consultant Benjamin Muschko uses code examples to explore new features such as the teeing collector, the string indentation and transformation APIs, and support for Unicode 11. With this ebook, you can determine whether it’s worthwhile to upgrade now or wait until the next Java release.

This edition covers:

  • Latest features and API enhancements: Using compact number formatting and exploring new methods for comparing files are just two examples.
  • Preview features: Evaluate the proposed switch expressions feature and provide feedback to the Java team.
  • Removed APIs and deprecations: Learn about several features and APIs that have been removed in this release.
  • Performance and security: Discover why improvements to the G1 garbage collector are among Java 12’s biggest selling points.