Question: how are arraylists implemented in java?
Answer: ArrayList in Java is a Resizable-array implementation of the List interface. Internally ArrayList class uses an array of Object class to store its elements. ... When elements are removed from an ArrayList space created by the removal of an element has to be filled in the underlying array.