If you try to add an item to an ArrayList whose size is equal to its capacity,
A) an exception that indicates that the ArrayList is full is thrown
B) a new ArrayList object with twice the capacity is created, and the elements are moved to this new ArrayList.
C) The method for adding the new item returns false
D) The method for adding the new item returns null
B) a new ArrayList object with twice the capacity is created, and the elements are moved to this new ArrayList.
Computer Science & Information Technology
You might also like to view...
One of the basic tools to help project future results based on past performance is a:
A) scenario. B) decision variable. C) moving average. D) interval.
Computer Science & Information Technology
Name a scheduling algorithm where starvation is impossible?
What will be an ideal response?
Computer Science & Information Technology