Computer Applications

What makes Java Platform Independent?

Java Intro

1 Like

Answer

Byte Code & JVM

Reason — Java's platform independence is due to Bytecode and JVM:

  1. Bytecode — Java programs are compiled into an intermediate code called Bytecode using the Java compiler. Bytecode is platform-independent and can run on any machine.
  2. Java Virtual Machine (JVM): — The JVM is platform-specific software that interprets or compiles Bytecode into native machine code for the underlying operating system. This allows the same Bytecode to run on any platform making Java platform independent.

Answered By

2 Likes


Related Questions