Which of the following statements are true?

a. An ArrayList can grow automatically.
b. An ArrayList can shrink automatically.
c. You can reduce the capacity of an ArrayList by invoking the trimToSize() method on the list.
d. You can reduce the capacity of a LinkedList by invoking the trimToSize() method on the list.


ac A LinkedList does not have excess capacity.

Computer Science & Information Technology

You might also like to view...

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

1. A queue is a last-in/first-out structure. 2. A collection is a data structure for holding elements.

Computer Science & Information Technology

The appointment area is available in all of the view options.

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

Computer Science & Information Technology

A specification of a Person structure in XML. Rewrite this specification using protocol buffers.

What will be an ideal response?

Computer Science & Information Technology

A precondition is a statement specifying the condition(s) that must be true before the function is called.

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

Computer Science & Information Technology