what is difference betwwen hashmap and hashtable ?
Answer Posted / deep pratap singh
HashMap HashTable
1> Not Synchronized Synchronized
2> can contain null cann't
You may also make HashMap Synchronized using generic
methods. Using Hashtable is bad habit. Try to avoid it.
| Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
What is synchronization and why is it important in java programming?
What is collection class in java? List down its methods and interfaces.
What are passing parameters?
whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net
What is java basic concept?
What is equals method in java?
Which category the java thread do fall in?
How is hashcode calculated in java?
Explain differences between collection api and stream api?
How many threads does a core java have?
What are the 6 boolean operators?
What is the size of a string in java?
Explain about sets?
Why is logger singleton?
Explain method local inner classes ?