• Post Reply Bookmark Topic Watch Topic
  • New Topic

Running JRE 7, for code compiled with JDK 6  RSS feed

 
Mahesh Trikannad
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are planning to upgrade from JRE 6 to JRE 7. Will running the existing code, compiled with JDK 6.0, be less performant than compiling with JDK 7.0. Any links on the topic will be helpful.

Thanks
 
Tim Cooke
Marshal
Posts: 4051
239
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mahesh Trikannad wrote:less performant

Depends on what you really mean by this?

But if you're asking whether code compiled with JDK6 will run ok on JRE7 then the answer is yes, it will run just fine.
 
Mahesh Trikannad
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply Tim. Question, is would you get better performance, if the code was compiled with JDK 7 while running JRE 7 , as opposed to compiled with JDK 6 and running JRE 7.
 
Tim Cooke
Marshal
Posts: 4051
239
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's very dependent on what your code is but I wouldn't expect any significant difference worth worrying about.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!