© Kishori Sharan 2017

Kishori Sharan, Java 9 Revealed, 10.1007/978-1-4842-2592-9_20

20. Other Changes in JDK 9

Kishori Sharan

(1)Montgomery, Alabama, USA

In this chapter, you will learn:

  • The underscore as a new keyword

  • Improved syntax for using try-with-resources blocks

  • How to use the diamond operator in anonymous classes

  • How to use private methods in interfaces

  • How to use the @SafeVarargs annotation on private methods

  • How to discard outputs of sub-processes

  • How to use new methods in the Math and StrictMath classes

  • How to use stream of Optionals and other new operations on Optionals

  • How to use spin-wait hints

  • The enhancements to the Time API and the Matcher and Objects classes

  • How to compare arrays and slices of arrays

  • The enhancements to the Javadoc and how ...

Get Java 9 Revealed: For Early Adoption and Migration now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.