The Java Virtual Machine (JVM) is a software environment that runs programs compiled to Java bytecode, an intermediate format between source code and machine instructions. A compiler turns Java source into bytecode once, and any computer with a JVM can then run it, the idea summed up in the slogan "write once, run anywhere". The JVM loads and verifies code, manages memory through automatic garbage collection, and uses just-in-time compilation to speed up frequently run code. Other languages, such as Kotlin and Scala, also compile to JVM bytecode.
The JVM is widely used in banking, trading and payment systems, where large Java code bases run core services. It is also a model for blockchain runtimes: the Ethereum Virtual Machine (EVM) similarly executes bytecode identically on every node, though with gas metering and strict determinism. Hyperledger Fabric chaincode can be written in Java and run on the JVM.
Ref 1300000320