truck difference actually. With JDKs, the conformance level is a compiler directive to specifically use the optimization and linking features for the version you specify. He has a lot more under the hood, but I don’t think you want to know. Newer versions of the JDK bring new features, and compilers in this version can understand and link these functions when creating class files or compiled code for your Java source files. Therefore, the JVM runtime in these JDKS is also equipped to handle such optimizations and cases and their processing. Thus, without conformance levels, the class file that you create using JDK8 will only work correctly with battery life based on JDK8. They may not do this with JDK7 or 6. To counter this problem and thus allow your compiled JDK8 code to run on JDK8,7 and possibly even 6, hyou need to appropriately add a compiler directive conformance level. The downside is that you won’t be able to use some of the latest features that the compiler offers, but there aren’t many such cases, and they outweigh the need for interoperability and availability.
source share