Multiple choice technology programming languages

A program written in the Java programming language can run on any platform because...

  1. Java programming is derived from C++.

  2. The compiler is identical to a C++ compiler.

  3. The APIs do all the work.

  4. The Java Virtual Machine(JVM) interprets the program for the native operating system.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Java achieves platform independence through the Java Virtual Machine (JVM). The JVM interprets compiled bytecode for the specific native operating system, allowing the same Java program to run anywhere a JVM is available. This architecture-neutral design separates the compilation process from the execution platform.