Trace the following part of codes step by step. Show exactly what it will print? Public class Final 1 { public static void main (String arg[]) { int []x = {2, 2, 1, 3, 4, 7}; int y; y = x[1] + 1; System.out.println(y); x[4] = 1; System.out.println(x[x[4]]); y--; System.out.println(x[y]); int z = x[y + 1]; for (z = 1; z Solution Output: 3 2 1 Final output: 3 3 program: public class FinalOutput { public static void main(String args[]) { int []x={2,2,1,3,4,7}; int y; y=x[1]+1; //y=3 i.e 2+1 System.out.println(y); //print y x[4]=1; //lacation 4 value tobe chenged to 1 System.out.println(x[x[4]]); //print x[1] value x[4] is 2 y--; //decrease y by 1 so, y=2 System.out.println(x[y]); //print x[2] is 1 int z=x[y+1]; for(z=1;z<=3;z++) x[z]=2*y-1; System.out.println(\"Final output:\"); System.out.println(x[z-2]); System.out.println(x[y]); } } .