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。