The Question : Why Java program is platform independent?
Solution for the question :
A Java compiler instead of translating Java code to machine language code, translates it into Java Bytecode. A Java interpreter, called the Java Virtual Machine (JVM), translates the bytecode into machine code and then executes it. The bytecode can be run on any platform as long as it has a JVM running on it. This makes Java programs platform independent and highly portable. ( keywords bytecodes and JVM to be included)
The correct answer to the question is researched by our moderators and shared with you. You can give feedback by commenting for the answers you think are wrong.