You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each class was compiled to be used with a specific version of Java. It was quite complex back in old versions of Java, but today everything is pretty straightforward - JVM can run classes of its version and classes with *older* versions. In other words, JVMs are **backwards compatible**
48
+
49
+
To store version of the Java that compiled the file, Major and Minor fields exist
50
+
51
+
Each major release of Java is assigned to its *major version*. For example, Java 6, that JavOC is intended to implement, has major version of `50`.
52
+
53
+
Minor version, however, is just a legacy field, that does not mean anything - any JVM should be able to run any minor version, if it supports the major. For example, Java 6 should be able to run `50.0`, `50.1`, `50.255` or any other.
0 commit comments