Question: [JAVA DATA STRUCTURES] Suppose that x = y; is a widening assignment. (a) If x and y are primitive variables, explain why the assignment can
[JAVA DATA STRUCTURES]
"Suppose that
x = y;
is a "widening" assignment."
(a) If x and y are primitive variables, explain why the assignment can also be referred to as a "widening conversion".
(b) If x and y are reference variables, how are the types of x and y related to each other?
myArray2[2] = myArray2[0];
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
