Reference books says arrays are immutable.
int[] myArray = new int[3];
myArray[0] = 1;
myArray[1] = 2;
myArray[2] = 3;
int[] myarray1 = myArray;
myarray1[1] = 3;
myarray and myarray1 both are showing result 1 3 3. but I thought myarray1=1 3 3 and myarray=1 2 3. Please share your knowledge on this.