Do JVMs on Desktops Use JIT Compilation?

后端 未结 5 1165
半阙折子戏
半阙折子戏 2020-12-09 23:44

I always come across articles which claim that Java is interpreted. I know that Oracle\'s HotSpot JRE provides just-in-time compilation, however is this the case for a major

5条回答
  •  囚心锁ツ
    2020-12-10 00:29

    Neither of the (otherwise-excellent) answers so far seems to have actually answered your last question, so: Yes, the Java runtime you downloaded from www.java.com is Oracle's (Sun's) Hotspot JVM, and so yes, it will do JIT compilation. HotSpot isn't just for servers or anything like that, it runs on desktops and takes full advantage of its (very mature) optimizing JIT compiler.

提交回复
热议问题