Java Foundations — Question 55

What is the meaning of “write once, run anywhere” in Java?

Answer options

Correct answer: C

Explanation

The correct answer is C because Java's design allows its programs to execute on any Java Virtual Machine without the need for recompilation. Option A misrepresents Java's capability by limiting it to web browsers, while option B incorrectly suggests that Java requires platform-specific compilation. Option D falsely claims that Java programs can run without a Java Virtual Machine, which is not accurate.