The output from the following code is __________.

```
java.util.ArrayList list = new java.util.ArrayList();
list.add("New York");
java.util.ArrayList list1 = (java.util.ArrayList)(list.clone());
list.add("Atlanta");
list1.add("Dallas");
System.out.println(list1);
```
a. [New York]
b. [New York, Atlanta]
c. [New York, Atlanta, Dallas]
d. [New York, Dallas]


d. [New York, Dallas]
The code added New York to list and cloned list1 from list. list1 now contains New York. Dallas is added to list1. So list1 contains New Your and Dallas.

Computer Science & Information Technology

You might also like to view...

A section of the Visual Basic for Applications window, called the Value pane, is used to display the current value of controls and arguments. _________________________

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

Computer Science & Information Technology

For the RIP (version 1) routing protocol, hop count is the sole metric used to determine the relative desirability of a particular path.

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

Computer Science & Information Technology

When a query is saved, it saves VBA statements.  _________________________

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

Computer Science & Information Technology

Where are the data components of a class that differ for each object stored?

A. Inside of instance variables. B. In variable unit states. C. Inside different object instantiations. D. Inside parent object relationships.

Computer Science & Information Technology