JVM stands for Java Virtual Machine . JVM is an abstract computing machine that enables a computer to run a Java program. JVM perform following main tasks :
- Loads Code
- Verifies Code
- Executes Code
- Provides runtime environment
- A specification where working of Java Virtual Machine is specified. But implementation provider is independent to choose the algorithm. Its implementation has been provided by Sun and other companies.
- An implementation Its implementation is known as JRE (Java Runtime Environment).
- Runtime Instance Whenever you write java command on the command prompt to run the java class, and instance of JVM is created.