How is the Java platform independent when we need to have JVM on every machine to run Java...

Quora Feeds

Active Member
Garry Taylor


The JVM is what makes it platform independent.

The point is that the JVM presents a sort of 'virtual platform' to program for, and that virtual platform sits on top of the 'real' platform (Windows, Mac, etc.) and therefore the code you write is (or can be) independent from the real platform.

You also don't necessarily have to install a JVM on the platform, you can bundle the JVM as part of your application.



See Questions On Quora

Continue reading...
 

dellmerca

Active Member
It means the Java programmer does not (in theory) need to know machine or OS details. These details do exist and the JVM and class libraries handle them. Further, in sharp contrast to C, Java binaries (bytecode) can often be moved to entirely different systems without modifying or recompiling.

Dell
 
Top