why is java platform independent
Answers
Answered by
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
If u have homework do this
Pushkar1003:
any comments
Answered by
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