Question 51 · 200 in bank
Given the code snippet from a compiled Java source file:
and this output:
Which command should you run to obtain this output?
Show answer
Answer: C
Explanation
The correct answer is C, args3 is equal to the value in the 2nd place of the list, but since Java indexes from 0, when executing the code, the "2" needs to be the 3rd argument, and the same is third in the answer C.
Source: Adapted from community discussion — iSnover

