UBS interview question

What are difference between Hashtable and HashMap ? What is package modifier ? What is the difference between soft reference and weak reference ?

Interview Answer

Anonymous

Feb 29, 2016

Hashtable is old, legacy, synchronized heavier than HashMap. HashMap is faster thus but need guarding in shared environment.