from http://vidyapsi.wordpress.com/2009/01/22/hashmap-vs-hashtable-vs-treemap-vs-linkedhashmap/
HashMap Vs HashTable Vs TreeMap Vs LinkedHashMap
Posted by vidya on January 22, 2009
| HashMap | HashTable | TreeMap | LinkedHashMap |
public class HashMap<K,V> | public class Hashtable<K,V> | public class TreeMap<K,V> | public class LinkedHashMap<K,V> |
| Unidentified Order | Decending Order | Ascending Order | Insertion Order |
| UnSynchronized | Synchronized | UnSynchronized | UnSynchronized |
| The values can be null. But the key should be unique | does not let you have null value for key. | The values can be null. But the key should be unique | The values can be null. But the key should be unique |
ไม่มีความคิดเห็น:
แสดงความคิดเห็น