All of the following are memory management methods of the ArrayList class except:

a. ensureCapacity()
b. clear()
c. isEmpty()
d. trimToSize()

B

Computer Science & Information Technology

You might also like to view...

A touchscreen is an acceptable method for accessing a BIOS screen on a PC

Indicate whether the statement is true or false

Computer Science & Information Technology

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

1. STL set operations are essentially insert, delete, and the query, “Is it there?”. 2. A Map is a function given as a set of ordered pairs. The first is the key that has to have ordering and the second is any type. The position of a pair in the set is determined by the ordering on the keys. 3. The notation m["stringval"] = 100 is valid if m is a map that takes a pair of type (string, 4. The set container implements only iterator. 5. Order of magnitude estimates don’t work well if we are interested in behavior for small data sets.

Computer Science & Information Technology