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 < x.length; i++)
System.out.print(x[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
b
Computer Science & Information Technology
You might also like to view...
A user style created with the Create New Style from Formatting option is available in ________
A) all Word documents B) only the document in which it was created C) all Word documents open when the style was created D) all Microsoft Office documents
Computer Science & Information Technology
1. How can you differentiate a sans serif typeface from a serif typeface?
What will be an ideal response?
Computer Science & Information Technology