why java is platform independent?
java is platform independent because the virtual machine include all operating system,so java is run on any platform java compiler converted source code into byte code,then the jvm to translate the byte code into machine code