Computer Science, asked by YashKatyan1208, 1 year ago

why is java platform independent

Answers

Answered by Pushkar1003
9
With Java, you can compile source code on Windows and the compiled code (bytecode to be precise) can be executed (interpreted) on any platform running a JVM. So yes you need a JVM but the JVM can run any compiled code, the compiled code is platform independent.



If u have homework do this

Pushkar1003: any comments
Answered by CrimsonHeat
6

  • Java is platform independent. Because the Java compiler converts the source code to bytecode, which is Intermidiate Language. Bytecode can be executed on any platform (OS) using JVM Java Virtual Machine.

Similar questions