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
What is boolean used for?
What is meant by overloading?
What is a for loop in java?
Is string an object?
What is serialversionuid?
What is the type of lambda expression?
Explain access specifiers?
What are the advantages of inner classes?
What flag up means?
How do you check if an arraylist is not empty?
what is a thread pool in java and why is it used?
Is hashmap thread safe?
What is nested loop? What is dangling else condition in it?
What is application tier?
Difference between ‘>>’ and ‘>>>’ operators in java?