Home >Java >javaTutorial >What Determines Java Class File Major and Minor Version Numbers?
List of Java Class File Format Major Version Numbers
The question arises about the origin of the list of major version numbers for Java, specifically whether there is a reference that also includes minor versions.
The answer points to the class version, which, when loaded into a Java runtime, can result in an error if the version numbers are incompatible. For example, trying to load a class compiled for Java 6 in a Java 5 runtime may result in a "got 50, expected 49" error.
The reference provided for this information is byte offset 7, where additional details can be found. Furthermore, additional information can be obtained from the link provided.
The above is the detailed content of What Determines Java Class File Major and Minor Version Numbers?. For more information, please follow other related articles on the PHP Chinese website!