If a new element is added to an ArrayList whose internal array if already full,
A) the add method throws an exception
B) A new,bigger internal array is created,the elements are moved to the new array,the old internal array is deleted,and then the new element is added
C) the new element is not added,and -1 is returned
D) the new element is not added,and null is returned
Correct Answer:
Verified
Q1: The boolean contains(E element)method searches a ArrayList
Q2: Assume an array-based list implemented by a
Q3: Assume an array-based list implemented by a
Q5: Assume an array-based list implemented by a
Q6: What is the difference between the Iterator
Q7: Assume an array-based list implemented by a
Q8: The int indexOf(Object o)method of the List
Q9: A constructor for an array-based list takes
Q10: The difference between an array and an
Q11: Assume an array-based list implemented by a
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents