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 [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
Get step-by-step solutions from verified subject matter experts
