What is the main difference between Java platform and other platforms?
The primary difference between Java and other platforms is the fact that Java contains JVM (Java virtual machine) and Java API that run on top of other hardware based platforms. The JVM converts Java code to machine language.
Other benefits that Java has over other platforms include:
- Java is a software only platform, whereas other platforms can be hardware only or a hardware software platform.
- Java runs on top of hardware platform, whereas other platforms could have only the hardware component.
- The Java API supports the writing of Java files, which are then converted to class file, i.e. byte stream by the java compiler. JVM then converts the byte stream to machine language which can then be read by any computer. Other platforms may or may not have this functionality.
- Java is platform independent, which means that once the code is written, it can be run from anywhere. Most other platforms do not have this capability.
- A Java programmer may develop Java code on any PC, while this functionality may not be available on other platforms.