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

Computer Science & Information Technology

You might also like to view...

Future value is the amount of a loan after the first payment has been made

Indicate whether the statement is true or false

Computer Science & Information Technology

Outlook does not automatically display a newly created calendar until you select it.

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

Computer Science & Information Technology

What are round plastic or metal pegs that separate the motherboard from the bottom of the case known as?

A. header B. standoff C. insulator D. elevator

Computer Science & Information Technology

Which of the following is not an advantage of using a database?

A. data integrity B. sharing C. security D. reliability

Computer Science & Information Technology