Can we use Java 17 or java 11? What are the supported java versions and target compatibility versions?
Can we use Java 17 or java 11? What are the supported java versions and target compatibility versions?
I appreciate it very much. I learned a great deal from your post, and it broadened my perspective.
There are two options available that you can take a look at:
1. Source with values that match the Java versions, up to the JDK in use for compilation (eg octordle 1.8 for JDK8). The version value restricts the language features that can be used in your source code to the corresponding Java version.
2. Target similar but version control of generated class files. This means that the provided version value will be the lowest Java version the program can run on.
5 People are following this question.