UnsupportedClassVersionError for same major but different minor versions?

62 Views Asked by At

I compiled my application with 1.6.xxx. If I try to execute in a lesser 1.6.yyy, will I get an UnsupportedClassVersionError?

1

There are 1 best solutions below

0
On BEST ANSWER

No. The minor version has not been set to any value other than zero since Java 1.2, as stated in the JVM Specification:

Oracle's Java Virtual Machine implementation in JDK release 1.0.2 supports class file format versions 45.0 through 45.3 inclusive. JDK releases 1.1.* support class file format versions in the range 45.0 through 45.65535 inclusive. For k ≥ 2, JDK release 1.k supports class file format versions in the range 45.0 through 44+k.0 inclusive.