- List is another interface present in java API for collection.
- list has of 4 different implemented classes {Array list, link list; stack and vector}
- list supports the duplicate values and stores the data in the same manner how we had provided.
- Array list support all feature of list. but store the data in Array format.
- Array list is not synchronized by nature.
- Array list w1 = new Array list (10) Array list increases the size by 50 % of it's initial size.
- Array list is not synchronized but vector is synchronized.
- vector is same as array list. but it is not synchronized by default. the size of the vector increases by double the initial size.
فریبا
سهشنبه 17 مردادماه سال 1391 ساعت 02:04 ق.ظ