ArrayList in java
The ArrayList class extends AbstractList and implements the List interface. It uses dynamic arrays for storing elements. It maintains insertion order. ArrayList can contain duplicate elements. It is not synchronized. Note: ArrayList provides the facility of random access because it is index-based. A lot of shifting needs to occur if any element is removed from … Read more