Can newer JRE versions run Java programs compiled with older JDK versions? -


this may stupid question, encounter problems running java programs , associated libraries compiled in java version 1.6 and 1.7 (i'm compiling using 1.7 whereas libraries compiled using 1.6) , running entire program in 1.7 jre?

not @ - that's magic of java -it's backwards compatible.you can run code java 1 on java 8. there's no reason why java 6 code won't run on java 8 runtime.

what interesting, applications written in, let's say, java 1.4, have speed increases when running them on later runtimes. because java evolving, not language known "java", jvm (java virtual machine). still have source code more 10 years ago still work, expected in latest jvm.

if want target, let's say, java 5 vm, can java 8 sdk tools. can specify target vm wish support, long bear in mind version 5 vm might not support features version 8 vm will.

i've tested code wrote in java 5 against new java 8 runtime , works expected, so, though have more powerful language , runtime now, can continue use our investments of past. alone makes java great development choice companies.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -