Question: why java is platform independent?
Answer: The meaning of platform-independent is that the java compiled code(byte code) can run on all operating systems. A program is written in a language that is a human-readable language. ... Therefore, a compiler is a program that translates the source code for another program from a programming language into executable code.