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 a treemap in java?
What is the default size of set in java?
How do you sing an Applet ?
What is the role of the java.rmi.naming class?
Explain method overloading?
Write a program in java to establish a connection between client and server?
Can set contain duplicates?
What is the difference between equals() and?
How many tetrahedral voids are there in bcc?
Explain reverse a linked list recursive java solution?
Is singleton a bad practice?
What is scope & storage allocation of static, local and register variables? Explain with an example.
How would you convert bytes to string?
What are scriptlets?
Write a program to print 15 random numbers using foreach of java 8?