Multiple choice

Which of the following commands is used to compile a java program(.java extension file)?

  1. java

  2. javac

  3. jvm

  4. jcc

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

We must execute the javac command to compile a java program(.java extension file). The syntax is as follows: javac <filename>