Java is only software based platform. It runs on some specific hardware based operating systems like UNIX, Windows etc. Below diagram explains this process. Java Compile and JVM
The Java platform contains the following 2 components.
• Java Virtual Machine (JVM): It can be deployed on any hardware specific platform. It generates byte codes for the java program.
• Java Application Programming Interface