One Liner...

...tujhe bhi apne pe ye aeitbaar hai ki nahi...

Monday, April 18, 2011

HashMap Vs HashTable

Main difference is HashMap's are unsynchronized and allows null whereas HashTable's are synchronized and does not allows null(key).

1 comment:

  1. See here some of differences between hashtable and hashmap in Java :

    1) hashtable is synchronized while hashmap is not.
    4) hashtable supports enumeration while hashmap uses Iterator

    Javin
    How HashMap internally works in Java

    ReplyDelete