The advantage of doing this is

The code
```
List myLs = new ArrayList<>( );
uses a List interface variable to reference the concrete ArrayList objec

```
A) the class of the collection object can later be changed to LinkedList without needing to change anything else in the program
B) the class of the collection object can later be changed to LinkedList, TreeSet, or even HashSet, without needing to change anything else in the program
C) the program compiles faster
D) None of the above: the statement is a type error.


A) the class of the collection object can later be changed to LinkedList without needing to change anything else in the program

Computer Science & Information Technology

You might also like to view...

There are many techniques for adding color to a black-and-white image to create a "colorized" effect.

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

Computer Science & Information Technology

Each field is given a ________ that matches the type of data that it contains

Fill in the blank(s) with correct word

Computer Science & Information Technology

Routers reply to Router Solicitation messages received by a node using ____________________ messages.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Each template contains an existing framework of formats and text

Indicate whether the statement is true or false

Computer Science & Information Technology