Array :
- Char[] vowel = new char[];
- Array is in the System Namespace.
- The capacity of an array is fixed.
- Array is a collection of similar items.
- An Array can have multiple dimensions.
ArrayList :
- ArrayList alist = new ArrayList();
- ArrayList is in the system.Collections namepace.
- ArrayList can increase and decrease size dynamically.
- Arraylist is a collection of dis-similar items.
- ArrayList always has exactly one dimentions.
No comments:
Post a Comment