Are Java 6's performance improvements in the JDK, JVM, or both?

后端 未结 4 1341
[愿得一人]
[愿得一人] 2021-01-20 04:18

I\'ve been wondering about the performance improvements touted in Java SE 6 - is it in the compiler or the runtime? Put another way, would a Java 5 application compiled by J

4条回答
  •  无人共我
    2021-01-20 04:55

    There's been a lot of new improvements and optimization in the new java virtual machine. So the main part you'll see improved performance is while running java with the version 6 jvm.

    Compiling old java code using the Java 6 JDK will probably yield more efficient code, but the main improvements lie in the virtual machine, at least that's what I've noticed.

提交回复
热议问题