These statement assigns those values to the array:

list1[0]=0;list1[1]=1;list2[2]=2;

This statement replaces the value that was in list2 with the value that is in list1

list2=list1;
Now...