We write Java Code and pass it through a compiler. The compiled file (or Byte Code), can be run on any platform with JVM installed. That is why Java is Platform Independent..
Java – Platform Independent & JVM Explained
We write Java Code and pass it through a compiler. The compiled file, file (or Bytecode), can be run on any platform with JVM installed.
That is why we say Java is Platform Independent.














