Why does java support different types of JVMs such as CVM, KVM?

297 Views Asked by At

We know that JAVA has several types of vitual machine supported. Why it's needed where Java could run based on one single/standard JVM? Why does java support different types of JVMs such as CVM, KVM?

1

There are 1 best solutions below

0
Markus Knecht On

When java was invented theire was a specification generated, which describes how to excecute the ByteCode produced by the Java compiler.

The Reason for that was, that java initially was designed for set-up boxes and other small devices and not for servers or desktop computers.

Because these devices all had different Hardware and Operating Systems (If they had one) multiple implementions of the JVM where needed for different Hardware.

For today, this means that anybody can implement a JVM and its not under controll of the Company behind java. As a added benefit Java runs everywhere, from a smart card over a secure element in a Mobile phone, to some network devices and finally on a personal computer or a server.