+ 5
Why Java is platform independent language?
to run Java codes there must be JVM in the system..then how it is platform independent...?
7 Answers
+ 6
The byte code made by JAVA remains the same and is converted to source code as per platform.
Also known WORA (Write Once, Read Anywhere).
+ 4
good answered @ Jonas Schroter...but I also want
anymore reasons?
+ 3
It's because the byte code generated by compiling the source code of any Java program works the same on any JVM installed machine regardless of the OS of the machine. Therefore we don't have to worry about the OS. If there is JVM installed in the machine, your code will run and give desired output.
+ 2
Cause you can install the JVM on different platforms, the compiler stays the same.
+ 2
java is platform independent language..as in c language the run of the program is depends on the compiler...suppose if u have windows os then compiler type is different...same for linux....etc.....but in java its doesnot matter what the type of the operating system is....the main fact of java is write the code once and run in any kind of os[maybe windows ,may be linux..]so thatswhy java is platform independent
+ 1
Java is an interpreted language, not a compiled ones. The compiling process depends on the OS, but interpretation not