Which statement is true about Java byte code?

A. It can run on any platform.
B. It can run on any platform only if it was compiled for that platform.
C. It can run on any platform that has the Java Runtime Environment.
D. It can run on any platform that has a Java compiler.
E. It can run on any platform only if that platform has both the Java Runtime Environment and a Java compiler.

題解

Java 只能執行在 Java Runtime Environment (JRE)上,換句話說任何平台只要有安裝正確版本的 JRE,都可以執行 Java。