Arrays are objects in Java. And references to objects are passed by value.

private void demo() {
int[] array = new int[5];
System.out.println(Arrays.toString(array)); // 0, 0, 0, 0, 0
fillArray(array);
System.out.println(Arrays.toString(array)); // 0, 1, 2, 3, 4
}

private void fillArray(int[] array) {
for (int i = 0; i < array.length; i++) {
array[i] = i;
}
}

ref : http://stackoverflow.com/questions/14062118/pass-array-by-reference-in-java