what is the difference between HashMap And HashTable?
Answer Posted / stalin
The HashMap class is roughly equivalent to Hashtable, except
that it is unsynchronized and permits nulls. (HashMap allows
null values as key and value whereas Hashtable doesnt
allow). HashMap does not guarantee that the order of the map
will remain constant over time. HashMap is unsynchronized
and Hashtable is synchronized
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Is singleton thread safe in java?
What are java annotations?
What is a package in java? List down various advantages of packages.
Can an anonymous class be declared as implementing an interface and extending a class in java programming?
Difference between string s= new string (); and string s = "abv";?
Write a function to find out longest palindrome in a given string?
What is console based application in java?
Should you use singleton pattern?
List primitive java types?
Can a constructor have different name than a class name in java?
What is int lol?
Is ruby built on java?
How do you reverse sort in java?
How many ways can an argument be passed to a subroutine and explain them?
Can private class be inherited in java?