Question 1
Topic: Java Basics
Skill tested: Select a valid Java application entry point and identify its command-line execution form.
A deployment team packages a small Java SE 8 utility in the unnamed package. The source file is named ReportTool.java, and it contains a public class named ReportTool. The class has a method declared as `public static void main(String[] args)`. The team compiles the source from the directory containing the file and wants to launch the class using the standard Java launcher, without specifying a classpath or creating a JAR. Which command sequence is valid?
The Java compiler takes the source filename, including its `.java` extension, while the launcher takes the class name without an extension. Thus, compile with `javac ReportTool.java` and launch with `java ReportTool`. The source-file launch form shown in A or C is not the standard Java 8 launcher behavior. `javac` does not compile a bare class name as in A, and the launcher is given a binary class name rather than the generated `.class` filename, so D is invalid.