Question: 2. Given the following declaration and initialization int [1 array1-(1,3,5,7,9,11): int [1 array2- new int[6): int [1 array3 new int[6) a) write java code to

 2. Given the following declaration and initialization int [1 array1-(1,3,5,7,9,11): int

2. Given the following declaration and initialization int [1 array1-(1,3,5,7,9,11): int [1 array2- new int[6): int [1 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

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!