Yes,
As Holla told, if the object is been returned then you can expect the actual change which you have passed as an argument.
Here is the changed code
public class example {
int i[] = {0};
public static void main(String args[]) {
int i[] = {1};
i=change_i(i);
System.out.println(i[0]);
}
public static int[] change_i(int i[]) {
int j[] = {2};
i = j;
return i;
}
}