Copying Arrays in JAVA JAVA by Ravinder Nath Rajotiya - April 17, 2021April 17, 20210 Copy Array in JAVA In this lecturewe are going to see yet another impotant concep in arrays that is copying two arrays or copying one array into another. let us consider an array int []array1 = {2,4,6,8,10,15}; int []array2 =array1; //copy memory location of array1 into array2, so both array point to same location. and thus both array will have sae values. But, remember this is not copying array. this is copying address of on into another. It does not copy values. You can now print these if you print the two by comparing int []array1={2,4,6,8,10}; //declare an array with five elements int []array2=array1; //assign memory location of one into another, so both point to same location printArray(array1); //call to print array values printArra(array2); //call to print array