X集合
集合
集合是什麼 ? 與其優勢 ?
集合(Collection)解釋 集合的層次( Collections hierarchy )架構 ?
為什麼集合不繼承 Cloneable 介面 或 Serializable 介面 ? 而是大部分的集合類都有自己繼承 ?
為什麼 Map 介面沒有繼承 Collection 介面?
Iterator 和 ListIterator 之間的區別?
迭代器 Iterator什麼是 fail-fast 安全機制 ? 是如何避開 ConcurrentModificationException ? 原理是什麼 ?
如何建立只能讀的集合 ? 如何使集合執行緒安全 ?
Comparable 和 Comparator 介面 之間的區別 ?
比較器List
什麼原因要使用 List 介面 ? 用過哪些 ?
Set
什麼原因要使用 Set 介面 ? 用過哪些 ?
HashSet 如何確保其中的唯一性與其如何儲存元素 ?
可以在 HashSet 和 TreeSet 集合放入 null 嗎 ?
兩者比較區別
Map
什麼原因要使用 Map 介面 ? 用過哪些 ? 與其中的差異 ?
HashMap 的原理 ? 如何儲存 Key / Value 一對 ?
如何透過 equal() 和 hashCode() 解決衝突 ?
如果我們 put 一個不同的 value 對象到相同的 key 值,會取代舊值,是如何做的 ?
Multi-Thread 環境中使用 HashMap 會有什麼問題?
HashMap 可以如何解決 Non Thread-Safe 的問題 ?
N ConcurrentHashMap 怎麼保證 Thread-Safe ? JDK 1.8 前後的鎖有什麼區別 ?
彼此之間的差異
ArrayList 和 LinkedList 和 Vector 差別 ?
Vector
TreeSet 和 SortSet 的關係 ?
HashMap 和 ConcurrentHashMap 和 LinkedHashMap 和 HashTable 的差別?
HashMap
ConcurrentHashMap
LinkedHashMap
HashTable
什麼是 Queue 和 Stack ? 兩者之間的差異 ?
Last updated