One of the most talked about features of the latest release of the Java platform is arguably JShell. However, there is a whole set of smaller features allowing developers to produce cleaner code faster. In this session, we use JShell to demonstrate how Java 9 allows us to write cleaner code.
In this session, we will explore several new language features and APIs in Java 9 allowing us to make our code cleaner. We will focus on smaller features which are often overlooked, including factory methods for collections, extended streams, updates to Optional, try with effectively final resources, private methods, process management API, stackwalker, and more.