The computer can run Java programs thanks to the Java Virtual Machine (JVM). The main method contained in the Java code is called JVM, which functions as a run-time engine. The computer system needs to implement the JVM specification. The Java code is converted by the JVM into a Bytecode that is similar to native code and independent of the target machine.