500
Because of this Java feature, after mod(itemArray, val) is called with the following code, itemArray is changed to {0,1,2,3} and val is still 5.
int[] itemArray = {9, 8, 7, 6};
int val = 5;
public static void mod(int[] a, int value)
{
for (int i=0; i < a.length; i++)
{
a[i] = i;
}
value = a[a.length-1];
}
What is pass by reference?