what is the difference between HashMap and Hashtable
Answer Posted / arun rajesh
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 ? | 54 Yes | 12 No |
Post New Answer View All Answers
What are the different http methods?
How many bytes are a float?
Can we override singleton class?
What is type safety in java?
Does java vector allow null?
Why heap memory is called heap?
How many arguments can be passed to main ()?
Explain inner classes ?
What is derived datatype?
What is runtime locatable code?
Explain the scope or life time of class variables or static variables?
How many threads can java run?
What are wrapper classes in java?
Which class should you use to obtain design information about an object in java programming?
Why call by value prevents parameter value change?