Analyze the following code:

```
public class Test {
public static void main(String[] args) {
int[] x = {1, 2, 3, 4};
int[] y = x;

x = new int[2];

for (int i = 0; i < y.length; i++)
System.out.print(y[i] + " ");
}
}```
a. The program displays 1 2 3 4
b. The program displays 0 0
c. The program displays 0 0 3 4
d. The program displays 0 0 0 0


a

Computer Science & Information Technology

You might also like to view...

Of letters, spreadsheets, reports, and books, they all usually use portrait orientation except ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

PowerPoint inserts text to the _________________________ of the insertion point.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The term hacker refers to someone who illegally uses computers for personal benefit or to cause damage.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Unless an image bears a copyright mark, it is not copyrighted.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology