Consider the following two methods that appear within a single class.
public void changeIt(int[] list, int num)
{
list = new int[5];
num = 0;
for (int x = 0; x < list.length; x++)
list[x] = 0;
}
public void start()
{
int[] nums = {1, 2, 3, 4, 5};
int value = 6;
changeIt(nums, value);
for (int k = 0; k < nums.length; k++)
System.out.print(nums[k] + " ");
System.out.print(value);
}
What is printed as a result of the call start()?
A) 0 0 0 0 0 0
B) 0 0 0 0 0 6
C) 1 2 3 4 5 6
D) 1 2 3 4 5 0
E) “changeIt“ will throw an exception.