Monday, 25 March 2013

ArrayList Class

ArrayList class:-

1)  uses a dynamic array for storing the elements, It extends AbstractList class and implements list
 
     Interface

2) Can contain the duplicate elements

3) maintains insertion order

4) random access because array works at the th index basis

5) manipulation slow because a lot of shifting needs to be occured


Hierarchy of ArrayList class:-















Example  of ArrayList:-


No comments:

Post a Comment