Question: Question 7 12.5 pts Why is it not efficient to use ArrayList objects when the application inserts or removes frequently objects from the list? An

 Question 7 12.5 pts Why is it not efficient to useArrayList objects when the application inserts or removes frequently objects from the

Question 7 12.5 pts Why is it not efficient to use ArrayList objects when the application inserts or removes frequently objects from the list? An ArrayList object takes less memory than a LinkedList object. or for some add operations all elements at higher indexes will have to shift. O The remove() and add0 operations have to iterate from index 0 to the indicated index to complete their job. Question8 12.5 pts mor br dealocaled 1 When the garbage collector calls finalize0 on the object reference to free its memory. O The garbage collector will free the memory when the object is not used (i.e. referenced) anymore The memory will be freed when the object reference goes out of scope. The programmer has to call delete on the object's reference to free its memory

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 Databases Questions!