Back to the 2019 paper

Module III: Basics of Web Programming

20192m

The command to execute a compiled Java program is

(i) javac
(ii) java
(iii) run
(iv) execute

Worked SolutionAI Assisted

Correct Answer: (ii) java

Explanation:

  • The java command launches the Java Virtual Machine (JVM) to load, verify, and execute compiled .class bytecode files (e.g., java ProgramName).
  • javac is the compiler command used to compile .java source code into bytecode (javac ProgramName.java).
  • run and execute are not standard JDK command-line utilities.

Similar questions

AI LearningWeb Platform

Coursify — Personal AI Course Generator

Struggling with a difficult subject or concept? Turn any engineering topic into a structured course with interactive lessons, quizzes, and research-backed explanations.