Question: 2 6 ) If a new element is added to an ArrayList whose internal array if already full, A ) the new element is not

26) If a new element is added to an ArrayList whose internal array if already full,
A) the new element is not added, and nul1 is returned
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 add method throws an exception

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!