In the following code, what is the output for list1?

```
public class Test {
public static void main(String[] args) {
int[] list1 = {1, 2, 3};
int[] list2 = {1, 2, 3};
list2 = list1;
list1[0] = 0; list1[1] = 1; list2[2] = 2;

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


c. 0 1 2

Computer Science & Information Technology

You might also like to view...

Is editing a Smart Object considered destructive editing?

What will be an ideal response?

Computer Science & Information Technology

A(n) ____ is a game in which the player is on a quest or adventure to solve a mystery, find a lost object, or complete some other goal that involves exploration and overcoming obstacles.

A. board game B. shooter game C. adventure game D. casino game

Computer Science & Information Technology

A set of characters at the end of a file name that helps the OS determine what kind of information is in a file and what program should openit.

A. Suffix B. Extension C. Index

Computer Science & Information Technology

Item ____ in the figure above points to the path or folder name.

A. 1 B. 2 C. 3

Computer Science & Information Technology