Your technology certification is waiting. Enroll in Cloud Class ®
it uses a single synchronized object to control access to the collection
This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.
Is there any plus point with hashtable over hashmap?
If we are accessing the map from two different request at different time,then the performance would remain same?
It's synchronized by default, which is a good thing if it's being accessed by multiple requests
wrong, its good only if its being accessed concurrently by multiple threads.
Just to be clear, Collections.synchronizedMap(Map<K, V>) has the same performance problems that HashTable has (it uses a single synchronized object to control access to the collection) and generally should be avoided now that ConcurrentHashMap exists.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.