The question reads:
and the command line invocation is:
java CommandArgsThree 1 2 3
what is the result?
A. 0 0
B. 1 2
C. 0 0 0
D. 1 2 3
E. Compilation fails
F. An exception is thrown at runtime
I got the question wrong since I though that
argCopy[0] needed to be an array of length 2. Anyway the answer is D, given that the reference variable argCopy[0] is reassigned to an array with three elements rather than two.
I'm still a bit confused about how this works though.
Thanks for any help!
Julian