Version 9 - 2017-09
Java Modules
- Java 9 Modularity book
jlink
[JEP 282]
Assembles and optimizes a set of modules and their dependencies into a custom runtime image
Ahead of time compilation - jaotc
- [JEP 295]
- based on the
graal
compiler
REPL - jshell
[JEP 222]
- 🔗 javaspecialists newsletter 250 - Learning Java with jshell
jshell < echoserver.jsh
(echoserver.jsh)- demo which starts an echo telnet server. After being started it can be tested bytelnet 8080
where it will echo any character back.
Concurrency updates - support for reactive streams [JEP 266]
java.io
API changes
InputStream.transferTo(OutputStream)
- transfer everything directly from anInputStream
to anOutputStream
.
XML Catalog [JEP 268]
- TODO
Compact strings [JEP 254]
- TODO
Milling project coin [JEP 213]
- Support for private methods in interfaces
Garbage Collectors
HotSpot Virtual Machine Garbage Collection Tuning Guide, release 9 pdf (🔗 original link)
The G1 (Garbage-First Garbage Collector) set as default