September 18, 2009 at 5:47 PM
1)ArrayList and HashMap both have a capacity.
2)Both are not synchronized.
3)Both can add and remove elements.
1) ArrayList is a collection of objects while HashMap is a collection of key and value pairs while
2)The ArrayList is indexed, while HashMap is not.
3)The ArrayList must be searched entirely for a member,while HashMap should be accessible in one step.
4)ArrayList is ordered while HashMap is not.