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|
|Ans. No, We cannot have duplicate keys in HashMap. If we attempt to do so , the previous value for the key is overwritten.|
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  java   collections   hashmap   map   hashtable|
Try 1 Question(s) Test
|Difference between HashMap and Hashtable?|
|Difference between TreeMap and HashMap ?|
|Can you provide some implementation of a Dictionary having large number of words ?|
|What is a ConcurrentHashMap ?|
| Collections.sort can only be performed on ..|
d. Any Collection implementation
|How is Hashmap internally implemented in Java ?|
| What is the difference between List, Set and Map ?|
What are the different Java Collections Interfaces ?
|Can we use null as a key for a map collection ?|
| Which of the following collections stores its elements in insertion Order ? |
|Which of the following doesn't extend Collection interface ?|