- ArrayList implements List interface
- HashMap implements Map interface
- ArrayList stores items
- HashMap stores key / value pairs
- ArrayList maintains order of items
- HashMap doesn't guarantee any order
- ArrayList allows duplicate items
- HashMap doesn't allows duplicate keys but allows duplicate values
- ArrayList increases its size by 50% while resizing
- HashMap increases its size by 100% while resizing (It also uses Load factor)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.