Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Interview Questions and Answers|
|Very frequently asked across all types of companies.|
|Ans. Hashtable is synchronized whereas HashMap is not.HashMap allows null values whereas Hashtable doesnt allow null values.|
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  java   collections   hashmap   map   hashtable   hashmap vs hashtable Asked in 14 Companies basic   frequent|
Try 2 Question(s) Test
|Can we use null as a key for a map collection ?|
|Why HashTable has been deprecated ?|
|What is a Property class ?|
|Can we add duplicate keys in a HashMap ? What will happen if we attempt to add duplicate values ?|
|Which interface does java.util.Hashtable implement?|
|Which interface does java.util.Hashtable implement ?|
|Which of the following is false ?|
| Which of the collections allows null as the key ? |
|Difference between concurrentHashMap and HashTable ?|