Question: Consider the following java code segment. int[][][] x = {{{1,2},{3,4}},{{5,6},{7,8}}}; int[][][] y = new int[2][2][]; y[0] = x[0].clone(); y[1][1] = x[1][1].clone(); x[0][0][0] = 100; x[1][1][1]

Consider the following java code segment.

int[][][] x = {{{1,2},{3,4}},{{5,6},{7,8}}};

int[][][] y = new int[2][2][];

y[0] = x[0].clone();

y[1][1] = x[1][1].clone();

x[0][0][0] = 100;

x[1][1][1] = 200;

System.out.println(y[0][0][0]+" "+y[1][1][1]);

Please answer what will be printed out and use figures to explain

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!