Compiling Java Program - Java Quiz Question


If the following program is saved in file named "HelloWorld.java", what are the commands for compiling it and running it.


A
javac HelloWorld
java HelloWorld
B
javac HelloWorld
java HelloWorld.java
C
javac HelloWorld.java
java HelloWorld.java
D
javac HelloWorld.java
java HelloWorld