what is difference betwwen hashmap and hashtable ?
Answer Posted / sekhar
Both class are under map interface.But hash table is
synchronized.hashMap is not.we can explictly synchronize
hash map by using the method
Collections.synchronizedMap(Hash Map);
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Describe the term diamond problem.
What is hasnext in java?
Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?
Which is faster call by value or call by reference?
Can we declare a class as abstract without having any abstract method?
what is synchronization and why is it important? : Java thread
What is the use of arraylist class in java?
What does regex mean?
Are maps ordered java?
Can a list be null in java?
What is tochararray in java?
How do you reverse a word in java?
What is string data type?
What is join () in java?
What is a type parameter in java?