C#/.NET interview Question - Can you distinguish between ArrayList and Array?
Shivprasad Koirala
String [ ] str = new String [5]; // here you see that the length is fixed as [5] and the data type is also defined as string.
ArrayList str = new ArrayList (); // here you see that the length is not fixed and is not tied up with a data type.
Regards,
Visit Authors blog for more C#/.NET interview questions