Search code examples
javacompilationjava-6java-5

Executing Java 5 Code With Java 6


Is there any way I can run class files (i.e. with main as the entry point) on JDK 6 that were compiled with Java 5?


Solution

  • Yes. Old java code can be executed on newer JVMs, but not the other way around.

    You'll be fine.