How Java is platform independent 2024?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Studied at University of Oxford, Lives in Oxford, UK
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. ... for that why Java is called Platform independent.
2023-05-07 07:22:15
评论(499)
Helpful(122)
Helpful
Helpful(2)

Charlotte Robinson
QuesHub.com delivers expert answers and knowledge to you.
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. ... for that why Java is called Platform independent.