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:
Verified
Q12: The three major categories of Java collections
Q13: A collection whose elements are pairs of
Q14: Which of the following is true?
A) Both
Q15: A collection that stores its elements in
Q16: A collection that is synchronized
A) protects data
Q18: Which of the following is true?
A) A
Q19: A Java collection
A) is a class that
Q20: The Iterator interface
A) is defined in the
Q21: If different objects can have the same
Q22: A hashcode of an object
A) is the
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