Is JVM platform independent?
The JVM must be platform dependent to allow your Java to run on the specific platform. A JVM for Windows will translate your Java into different system calls than a JVM for OS X.
No, JVMs are not platform independent. In fact they are platform specific run time environment provided by the vendor.
Java Virtual Machine (JVM) provides the environment to execute the java file(. Class file). So at the end it’s depends on your kernel , and kernel is differ from OS (Operating System) to OS.
The JVM is used to both translate the bytecode into the machine language for a particular computer, and actually execute the corresponding machine-language instructions as well. Without the JVM, you can’t run a Java application.
Recent Comments