Solved

If You Try to Add an Item to an ArrayList

Question 17

Multiple Choice

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

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents