What is the output of the following when run as java MyClass myValue?
public class MyClass { public static void main(String... names) { System.out.println(names[0]); } }
B.
Array indexes begin with zero.
MyClass is the name of the class, not an argument.
Therefore, the first argument is myValue, and Option B is correct.