Suppose that u r using an array of intgers.Which may contain any numer of integers which you know only at runtime.
So while coding u cannot specify the size of the Array.
Array list is used to solve this problem.
It has a default size(16 items).
if u have even 1 item the size will be 16.
After 16 if u add another item the size increases to 32.
i.e the arrayList size can be increased dynamically.