ArrayList MyList = new ArrayList();
It will work good. Suppose if we add like,
It will compile without error. If we loop through each item and converting it to integer we will got exception thrown.
To avoid this we will go for Generic Type
ArrayList Equivalent Generic Type is List
MyList.Add("3"); ---> this will give you complier Error