Why is it important to set empty elements to null when we are clearing or removing from

Question:

Why is it important to set empty elements to null when we are clearing or removing from the list of type E, when we didn’t need to clear out these elements in the previous ArrayIntList?


Data from Previous Exercise

What is an annotation? How are annotations useful in writing our ArrayList class?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: