Collections Comparisons


You must be very strong in Java DS to write comparisons between various Collection classes. This tutorial gives you possible Java DS comparisons.

  1. Enumeration vs Iterator
  2. Iterator vs ListIterator
  3. Vector vs ArrayList
  4. Array vs ArrayList
  5. for vs foreach
  6. Hashtable vs HashMap
  7. Set vs HashSet
  8. Map vs HashMap
  9. HashMap vs TreeMap
  10. Comparable vs Comparator
  11. HashSet vs HashMap
  12. HashSet vs TreeSet

================== For Extra Reading ====================

1. Collections API Methods – DS Elements Manipulation

2. class Arrays API Methods – Array Elements Manipulation

Leave a Comment

Your email address will not be published. Required fields are marked *