Given the code from the Greeting.Java file:
Which set of commands prints Hello Duke in the console?
A. Option A
B. Option B
C. Option C
D. Option D
Given the code from the Greeting.Java file:
Which set of commands prints Hello Duke in the console?
A. Option A
B. Option B
C. Option C
D. Option D
The correct answer is C.
Answer A is incorrect because the format for the javac command must be:
javac Filename.java
The format for the java command must be:
java Filename [arg0] [arg1] … [argn]