What is Java Virtual Machine (JVM)?

JVM or Java Virtual Machine is a specification to provide the runtime environment on which a bytecode can be executed. JVMs are prepared platform specific and are available for almost all the hardware and machine.

Features of JVM −

  • It provides class loader to load a class.

  • It provides bytecode verifier to verify the legality of the bytecode.

  • It provides runtime.

  • It executes the bytecode.