how is java platform independent
Answers
Answered by
18
with java you can assemble source code on windows and the assembled code( Bytecode to be precise) can be executed on any platform running a JVM. so yed you need a jvm but the jvm can run any assembled code, the assembled code is platform independent. please if this answer is helpful brainliest please
Answered by
13
In Java one write the program in high level language. The compiler converts that into a Java Intermediate code called the byte code. This is not the executable.
A run time environment called JRE / Java Virtual Machine is installed and run on a computer of any time. This environment now can execute any Java program in the form of bytecode.
Thus Java programming environment makes it possible to write programs in a platform independent way. One does not need to know how data is organized by the computer and what the operating system is. The JVM takes care of that. However, the JVM is platform dependent.
A run time environment called JRE / Java Virtual Machine is installed and run on a computer of any time. This environment now can execute any Java program in the form of bytecode.
Thus Java programming environment makes it possible to write programs in a platform independent way. One does not need to know how data is organized by the computer and what the operating system is. The JVM takes care of that. However, the JVM is platform dependent.
Similar questions