Java is a platform-independent language becasue java compiled code(byte code) can run on all operating systems.
The Java compiler converts the high-level language (human language or source code) into a format understood by the machines (Byte code). This Byte code can run over any operating systems. Therefore java is platform independent lanuage.
The Java compiler converts the high-level language (human language or source code) into a format understood by the machines (Byte code). This Byte code can run over any operating systems. Therefore java is platform independent lanuage.