Important Points in Collections
>> Tuesday, May 24, 2011
To know Collections concept completely and clearly follow the below steps.
1.Heterogeneous Objects:
(a)TreeSet and TreeMap doesn't allow Heterogeneous Objects.
2.Insertion Order:
(b)Only List & it's child Classes ,LinkedHaset ,LinkedHashMap preserved.
3.Duplicate Values:
(c)Only List and it's child Classes allow......In Map values are allowed.
4.Display Order:
(d)For TreeMap and TreeSet as per sorting order.
5.Null Acceptance:
(e)HashTable, TreeSet,TreeMap doesn't allow.
6.Synchronized:
(f)Vector,Stack,HashTable,properties are Synchronized.
7.Default Sizes:
(g)List and Child Classes=10
Set and it's child Classes=16
Map & it's child Classes=16.
8.Incermental size/Ratio:
(h)List and it's child Classes=16
Set & Map=0.75(loadFactor,fillRatio)
1.Heterogeneous Objects:
(a)TreeSet and TreeMap doesn't allow Heterogeneous Objects.
2.Insertion Order:
(b)Only List & it's child Classes ,LinkedHaset ,LinkedHashMap preserved.
3.Duplicate Values:
(c)Only List and it's child Classes allow......In Map values are allowed.
4.Display Order:
(d)For TreeMap and TreeSet as per sorting order.
5.Null Acceptance:
(e)HashTable, TreeSet,TreeMap doesn't allow.
6.Synchronized:
(f)Vector,Stack,HashTable,properties are Synchronized.
7.Default Sizes:
(g)List and Child Classes=10
Set and it's child Classes=16
Map & it's child Classes=16.
8.Incermental size/Ratio:
(h)List and it's child Classes=16
Set & Map=0.75(loadFactor,fillRatio)