Question: Suppose you have a method that takes as its parameters two integer arrays datal and data2 of the same length and it copies all the

 Suppose you have a method that takes as its parameters two

Suppose you have a method that takes as its parameters two integer arrays datal and data2 of the same length and it copies all the data from datal to data2 and then clears datal (that is, it sets all the values in datal to 0). What would happen if someone invoked this method and passed in the same array for both arguments rather than passing in two distinct arrays

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!