The 9 New Developer Features in Java 9
The big new features in JDK 9 is the Java Platform Module System coupled with the introduction of the modular JDK. However, there are plenty of new features in JDK 9, and in this article, I focus on nine that are of particular interest to developers. Where applicable, I've included the relevant JDK Enhancement Proposal (JEP) numbers so you can find more information. No 1. Factory Methods for Collections (JEP 269) Collections provide a well-understood way for you to gather together groups ( I was going to say sets , but that could be a bit misleading) of data items in your applications and then manipulate the data in a variety of useful ways. At the top level, there are interfaces that represent the abstract concept of a List, Set, and Map. The problem, until now has been that Java doesn't provide a simple way to create a collection with predefined data. if you want a collection to be structurally immutable (that is, you can't add, delete, or change the refer...