Java SE 8 Programmer I — Question 90
Which two statements are true about Java byte code? (Choose two.)
Answer options
- A. It can be serialized across network.
- B. It can run on any platform that has a Java compiler.
- C. It can run on any platform.
- D. It has ג€.javaג€ extension.
- E. It can run on any platform that has the Java Runtime Environment.
Correct answer: A, E
Explanation
Java byte code is designed to be platform-independent, allowing it to run on any platform that has the Java Runtime Environment (JRE) installed, which makes option E correct. Additionally, byte code can be serialized for transmission over a network, which makes option A true. Options B, C, and D are incorrect because not all platforms have a Java compiler, byte code doesn't run on every platform directly, and it does not have a .java extension, as that is reserved for Java source files.