This flashcard is just one of a free flashcard set. See all flashcards!
1
If list1 and list2 are both created as array data types, what will be the result of the following assignment statement? list2 = list1
A) The values in the array list1 will be copied to the array list2.
B) The values in the array list2 will be copied to the array list1.
C) The reference to array list2 will be copied to the array list1.
D) The reference to array list1 will be copied to the array list2.
A) The values in the array list1 will be copied to the array list2.
B) The values in the array list2 will be copied to the array list1.
C) The reference to array list2 will be copied to the array list1.
D) The reference to array list1 will be copied to the array list2.
D) The reference to array list1 will be copied to the array list2