Well, this is just a simple explanation, JIT is a lot more complex than this. JIT also offers caching of compiled code which results in improved performance of JVM.īy the way, the difference between JVM and JIT is also a good Java interview question to ask. JIT helps JVM here by compiling currently executing byte code into machine language. ![]() Since the execution of bytecode is slower than the execution of machine language code because JVM first needs to translate bytecode into machine language code. These byte codes are then executed by JVM. Java source code is compiled into class files, which contain bytecode. The main advantage of JVM is that JVM makes Java platform-independent by executing bytecodes. ![]() JVM is a virtual machine used in Java programming platforms to execute or run Java programs. ![]() JIT stands for Just In time compilation and JVM stands for Java Virtual Machine. The main difference between JIT and JVM is that JIT is part of JVM itself and its main function is to improve the performance of JVM by directly compiling some hot code (code that executes above a certain threshold) into native instruction.
0 Comments
Leave a Reply. |