1.

What is the difference between HashMap and HashTable in Java?

Answer»
 HashmapHashtable
1.NonsynchronizedSynchronized
2.Not thread safeThread-safe
3.Cannot be shared between THREADS WITHOUT SYNCHRONIZATION codeCan be shared with many threads
4.Allows null key and multiple null valuesDoes not ALLOW null key or value


Discussion

No Comment Found