In the following code, what is the output for list2?
```
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 < list2.length; i++)
System.out.print(list2[i] + " ");
}
}
```
a. 1 2 3
b. 1 1 1
c. 0 1 2
d. 0 1 3
c. 0 1 2
You might also like to view...
What are dynamic Web pages?
What will be an ideal response?
What is the name that is used to reference the central primary cable distribution point in a building?
A) MDF B) IDF C) LDF D) PDF
What type of variable is visible in multiple methods throughout the program?
A. scope variable B. class variable C. local variable D. universal variable
The subquery that involves a table listed in the outer query is called a(n) ____________________ subquery.
Fill in the blank(s) with the appropriate word(s).