Whats the difference between JVM and JIT?
The Java Virtual Machine (JVM) is a program that runs on a computer operating system and executes Java program code. The JVM takes the Java code and compiles it to a format that can be run directly on the computer’s processor. The JVM controls the interface between the Java code and the computer like audio software enables us to play the same CD on a Windows, Mac or GNU Linux computer. In early versions of the JVM, all the Java code for a program had to be loaded and compiled before the program could be run. More recent versions are optimised so that the Java code is compiled “Just In Time”; just before it is due to be executed on the processor. This approach accelerates program start-up, and overall performance of the Java program, but requires an extra level of coordination within the virtual machine. Actions: Follow-up, clarify or correct this answer. Submit a new question.