what is the difference between HashMap and Hashtable
Answer Posted / green
HashTable is a Legacy Class,where as HashMap is not.
HashTable is Syncronized,where as HashMap is not.
HashTable does not allow any null keys nad values, HashMap
allows one null key and 'n' number null values.
comparatively HashMap is faster then HashTable
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is the largest number a double can hold?
If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?
Explain different forms of polymorphism?
What is JDBC Driver interface?How can you retrieve data from the ResultSet
Does java return by reference?
What is the purpose of return statement?
Is 0 true or false?
Is the milky way in a void?
Is main an identifier?
What do you mean by singleton class in java?
What is the access scope of a protected method?
Can we override singleton class?
How many types of the indexof method are there for strings?
What is bytecode verifier?
Explain super keyword in java.