Solved

What Would Be the Result After the Following Code Is

Question 60

Multiple Choice

What would be the result after the following code is executed?
int[ ] x = {23, 55, 83, 19};
Int[ ] y = {36, 78, 12, 24};
X = y;
Y = x;


A) x[ ] = {36, 78, 12, 24} and y[ ] = {23, 55, 83, 19}
B) x[ ] = {36, 78, 12, 24} and y[ ] = {36, 78, 12, 24}
C) x[ ] = {23, 55, 83, 19} and y[ ] = {23, 55, 83, 19}
D) Nothing. This is a compile error.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions