Command to execute a compiled java programs is

  1. run

  2. execute

  3. javac

  4. java


Correct Option: D

AI Explanation

To execute a compiled Java program, you need to use the java command.

The correct answer is D) java.

Explanation for each option:

Option A) run - This option is incorrect because "run" is not a valid command to execute a compiled Java program.

Option B) execute - This option is incorrect because "execute" is not a valid command to execute a compiled Java program.

Option C) javac - This option is incorrect because "javac" is used to compile Java source code, not to execute a compiled program.

Option D) java - This option is correct because the "java" command is used to execute a compiled Java program. You can run the program by typing java in the command line, where `` is the name of the compiled Java file without the ".class" extension.

Find more quizzes: