Hashtable 爲什麼不叫 HashTable?

前幾天在寫《HashMap 和 Hashtable 的 6 個區別》這篇文章的時候,差點把 Hashtable 寫成了 HashTable,後來看源碼證實了是:Hashtable,小寫的 "t"able,不符合駝峯命名規則。 什麼是駝峯命名規則,來看下面的關鍵字: HashMap ArrayList ConcurrentHashMap 簡單來說就是,標識符的每個單詞首字母必須大寫,看起來像是駝峯的
相關文章
相關標籤/搜索