179k views
5 votes
70) Running a Java program on a computer requires:

A) a Java Virtual Machine to be installed on that computer.
B) a Java Virtual Machine to be installed on the server hosting the Java applet.
C) a miniature program to be downloaded to the user's computer.
D) no specialized software, as Java is platform-independent.
E) the Mozilla Firefox browser and no other browsers.

User Andyfinch
by
7.1k points

1 Answer

1 vote

Final answer:

To run a Java program, a Java Virtual Machine must be installed on the computer in question because it converts Java bytecode into machine code. Java applets are outdated, and no specific browser is required for running Java programs.

Step-by-step explanation:

Running a Java program on a computer requires a Java Virtual Machine (JVM) to be installed on that computer. This is because Java is a platform-independent language, meaning that Java code can run on any device that has a JVM, which interprets the Java bytecode into machine code appropriate for the underlying hardware. Therefore, option A, "a Java Virtual Machine to be installed on that computer," is the correct answer. Java applets, which are mentioned in option B, are an outdated technology and are not commonly used anymore, and the other options presented are incorrect. No specific browser, like Mozilla Firefox, is necessary for running Java programs, as long as the JVM is in place.

User Jlembke
by
8.2k points