Which set of commands prints Hello Duke in the console?

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

Download Printable PDF. VALID exam to help you PASS.

One thought on “Which set of commands prints Hello Duke in the console?

  1. 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]

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.