what is the difference between HashMap and Hashtable
Answer Posted / avinash
1. Hash map is not is synchornized
2. Hash map is allow null value only at once.
3. iterator is fail safe
1.Hash table is synchronized.
2. Hash table isnot allow null value.
3. enum hashtable is not.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are methods in java?
What are the fileinputstream and fileoutputstream?
What class allows you to read objects directly from a stream?
Why strings in java are called as immutable?
can java object be locked down for exclusive use by a given thread? : Java thread
How do you reverse a word in java?
What is an empty class? What functionality does it offer in Java?
What are variable arguments or varargs?
Is main a function?
How many bytes is 255 characters?
Can finally block be used without a catch?
What does compareto () do in java?
How to perform linear search in java?
What about abstract classes in java?
What are static blocks and static initalizers in java ?