·Compile
code of java is the byte code. Byte code could be executed irrespective of the
operating system under which it has been compiled. So java is platform
independent.
·If
you observe the below the diagram we will get more clarity about platform
independent applications.
1.
If you are compiling our java code on
windows operating system. Then it generate one intermediate code called as
“BYTE CODE”.
2.
But at run time you are giving the same
byte code for different operating systems, i.e. windows, Solaris, Mac Os, all
operating systems are accepted and generated its respective machine code by
using JVM
Java
Uses an Intermediate Language
Java
source code is compiled into an intermediate language called "byte
code." The byte code can be run in any hardware that has a Java Virtual
Machine (JVM) for that machine platform. Thus, the "write once-run anywhere" concept