hashMap和TreeMap的適用場景

public class HashMap<K,V>優化        extends AbstractMap<K,V>排序        implements Map<K,V>,Cloneable,Serialiable接口        HashMap:基於哈希表實現,使用HashMap要求添加的鍵明肯定義了hasCode()和equals(),爲了優化hashMap空間的使用,能夠調優初始容量
相關文章
相關標籤/搜索