最佳答案
Java 9's javac
has a new flag --release
:
> javac --help
...
--release <release>
Compile for a specific VM version. Supported targets: 6, 7, 8, 9
How is it different from -source
and -target
flags? Is it just a shortcut for -source X -target X
?