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。