Multiple choice technology

The Java compiler requires that a source file use the ________ filename extension

  1. .h

  2. .java

  3. >java

  4. .class

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

Java source files must use the .java extension as required by the Java compiler (javac). The .h extension is for C/C++ header files, and .class is the extension for compiled bytecode files produced by the compiler, not source files. Option C '>java' appears to be a typo or formatting error.