Teaches you the ins and outs of Java 9 (not the module system, though). The links below take you to the demo in this project, the JEP responsible for introducing the feature, and to other sources if available.
The scripts are written for Linux but should look similar on other operating systems. They do need three symlinks, though:
java9
links tojava
in the JDK 9 installjavac9
links tojavac
in the JDK 9 installjar9
links tojar
in the JDK 9 install
The language changes are rather small and there is no real point in doing any exercises - it suffices to take a look.
- private interface methods (JEP 213)
- try-with-resources on effectively final variables (JEP 213)
- diamond operator for anonymous classes (JEP 213)
@SaveVarargs
on private non-final methods (JEP 213)- no warnings for deprecated imports (JEP 211)
Stream
improvementsOptional
improvements- collection factory methods (instead of collection literals; JEP 269)
- stack walking (JEP 259, post on SitePoint including benchmarks)