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
Which list is sorted in java?
What is function and method in java?
Does unicode support all languages?
Where will it be used?
What is the default access specifier for variables and methods of a class?
How can we run a java program without making any object?
How do you override a variable in java?
Does constructor be static?
When will you define a method as static?
What is mnemonic in assembly language?
What is finalize()? Is finalize() similar to a destructor?
What is meant by collection in java?
How do you add spaces in java?
What does java final mean?
Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?