Question: Given (he following declaration and initialization int [] array I = {1, 3, 5, 7, 9, 11}: int[] array2= new int[6]: int[] array3 = new

 Given (he following declaration and initialization int [] array I =

Given (he following declaration and initialization int [] array I = {1, 3, 5, 7, 9, 11}: int[] array2= new int[6]: int[] array3 = new int[6]: a) write java code to copy the array 1 into arry2, so arry2 has separate copy of the array: b) write java code to have arry3 point to the same memory location as array 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!