Question 1
Assume int[] scores = {1, 20, 30, 40, 50}, what is the output of System.out.println(java.util.Arrays.toString(scores))?
◦ [1, 20, 30, 40, 50]
◦ [1 20 30 40 50]
◦ {1 20 30 40 50}
◦ {1, 20, 30, 40, 50}
Question 2
How can you get the word "abc" in the main method from the following call?
java Test "+" 3 "abc" 2
◦ args[0]
◦ args[1]
◦ args[2]
◦ args[3]