Skip to main content

Collections

English

  1. Understand the collection system hierarchy.
  2. What is an iterator?
  3. What are the differences between HashMap and Hashtable?
  4. How is the expansion operation of HashMap implemented?
  5. How does HashMap resolve hash collisions?
  6. Why doesn’t HashMap directly use the hash value processed by hashCode() as the index for the table?
  7. What are the differences between ConcurrentHashMap and Hashtable?
  8. What is the fail-fast mechanism in Java collections?
  9. What are the differences between ArrayList and Vector?
  10. What are the differences between ArrayList and LinkedList?
  11. How does HashSet ensure that data is not duplicated?
  12. What are the differences between Set and List?
  13. What are the differences between HashMap and TreeMap?
  14. What are the differences between Collection and Collections?
  15. Explain the logic for selecting a collection implementation class.

Chinese

  1. 理解集合體系結構圖。
  2. 什麼是迭代器?
  3. HashMapHashtable 的區別是什麼?
  4. HashMap 的擴容操作是如何實現的?
  5. HashMap 是如何解決哈希衝突的?
  6. 為什麼 HashMap 不直接使用 hashCode() 處理後的哈希值作為表的下標?
  7. ConcurrentHashMapHashtable 的區別是什麼?
  8. Java 集合的快速失敗機制(Fail-Fast)是什麼?
  9. ArrayListVector 的區別是什麼?
  10. ArrayListLinkedList 的區別是什麼?
  11. HashSet 是如何保證數據不可重複的?
  12. SetList 的區別是什麼?
  13. HashMapTreeMap 的區別是什麼?
  14. CollectionCollections 的區別是什麼?
  15. 介紹選擇集合實現類的邏輯。