In the ArrayStack implementation, after the first call to remove(i), the backing

In the ArrayStack implementation, after the first call to remove(i), the
backing array, a, contains n + 1 non-null values despite the fact that
the ArrayStack only contains n elements. Where is the extra non-null
value? Discuss any consequences this non-null value might have on the
Java Runtime Environment’s memory manager.
Requirements: max 1 page

Leave a comment

Your email address will not be published. Required fields are marked *