what is the difference between HashMap and Hashtable
Answer Posted / regalla naresh reddy
Hash Table is a legacy Class Whereas HashMap belongs to the
collections package.
HashMap allows null key and values..but it allows only one
null key and multiple null values...Whereas the HashTable
wont allow the null key and values..
| Is This Answer Correct ? | 15 Yes | 6 No |
Post New Answer View All Answers
Does sprintf add a null terminator?
What is boolean example?
What is thread pool in java with example?
Where will it be used?
Why is multiple inheritance not supported in java?
What is loop in java?
What is super keyword explain with example?
What are the basic interfaces of java collections framework?
What is use of inner class in java?
what is object-oriented programming in java?
What is boolean flag in java?
What is the java project architecture?
What is a numeric digit?
Can constructor return value?
what is the volatile modifier for? : Java thread