ARRAY
|
ARRAYLIST
| |
1.
|
Char[] vowel=new Char[];
|
ArrayList a_list=new ArrayList();
|
2.
|
Array is in the Systemnamespace
|
ArrayList is in the System.Collectionsnamespace.
|
3.
|
The capacity of an Array is fixed
|
ArrayList can increase and decrease size dynamically
|
4.
|
An Array is a collection of similar items
|
ArrayList can hold item of different types
|
5.
|
An Array can have multiple dimensions
| |
No comments:
Post a Comment