Virtual machine startup Java virtual machines start by bootstrap Class Loader to create an initial class that is specified by the implementation of the virtual machine.

Execution of virtual machines • A running Java virtual machine has a clear task: execute Java programs • the program starts when it executes and stops when it finishes • When executing a so-called Java program, what is really executing is a process called the Java Virtual machine

The vm exits in the following scenarios: • A thread calls the Exit method of the Runtime class or the System class, or the Halt method of the Runtime class, And the Java Security manager also allows this exit or HALT operation

In addition, the JNI (Java Native Interface) specification describes the Java Virtual machine exit when the Java Virtual machine is loaded or unloaded using the JNI Invocation API.