Question 32 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question 32 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question

Given the code from the Greeting.Java file:

public class Greeting {
public static void main(string[] args) {
System.out.println ("Hello " + args[0]);
}

Which set of commands prints Hello Duke in the console?

© A) javac Greeting
java Greeting Duke

© B) javac Greeting. java Duke
java Greeting

© C) Javad Greéting. java
java Greeting Duke

© D) javac Greeting. java
java Greeting.class Duke

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

C.