Show and explain the printout of the following segment:  ( l…

Show and explain the printout of the following segment:  ( line numbers are not a feature of  a code) 1: double[] numbers = {1, 4.3, 5.55, 3.4}; 2: double[] x = new double[numbers.length]; 3: System.arraycopy(numbers, 1, x, 0, 3); 4: for (int i = 0; i < x.length; i++) 5:    System.out.print(x[i] + " ");

Suppose int x = 1, y = -1,  z = 1;  What is the printout of…

Suppose int x = 1, y = -1,  z = 1;  What is the printout of the following statement? ( ( line numbers are not a feature of  a code) ) 1: if (x > 0) 2:    if (y > 0) 3:        System.out.println(“A”); 4:    else if (z > 0) 5:       System.out.println(“B”); 6: else System.out.println(“C”);