Java 9 -source and -target options

In Java 9, the supported values are shown as follows:

Supported values Remarks
9 This is the default, should no value be specified
8 Sets support to 1.8
7 Sets support to 1.7
6 Sets support to 1.6 and generates a warning (not an error) to indicate JDK 6 is depreciated

Get Java 9: Building Robust Modular Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.