Machine-translated by Google. Questions are authored in English.
Top

Discussion

To run a compiled Java program, the machine must have what loaded and running?

  • A.Java virtual machine
  • B.Java compiler
  • C.Java bytecode
  • D.A Web browser

Answer: A

Correct answer: Java virtual machine

Compilation produces bytecode rather than machine code, and bytecode is not executable by any processor directly. The Java virtual machine reads it and executes it, and it is the JVM that differs from platform to platform while the bytecode does not - which is the whole of the write once, run anywhere claim.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.