Multiple choice technology programming languages

Which command compiles a Java application named FirstApp?

  1. javac FirstApp

  2. javac FirstApp.java

  3. java FirstApp

  4. java FirstApp.class

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

The javac command compiles Java source files and requires the .java extension. The java command runs compiled classes, not source files.