Given: What is the result?
A.
10, 20, 30, 10, 20, 30
B.
12, 22, 32, 12, 22, 32
C.
11, 21, 31, 11, 21, 31
D.
11, 21, 31, 12, 22, 32
Given: What is the result?
A.
10, 20, 30, 10, 20, 30
B.
12, 22, 32, 12, 22, 32
C.
11, 21, 31, 11, 21, 31
D.
11, 21, 31, 12, 22, 32
D
compilation error
tested
//doChange(arr[0], arr[1], arr[2]); //Orginal code
doChange(arr); //Passleadercode q115
System.out.println(arr[0] + “, ” + arr[1] + “, ” + arr[2]);
With orginal code: 11,21,31 + RuntimeException
With Passleader: 11,21,31
12,22,31
Answer: D