what is the difference between HashMap And HashTable?
Answer Posted / stalin
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 ? | 8 Yes | 0 No |
Post New Answer View All Answers
What type of variable is error flag?
Is java a digit method?
Write code to implement bubble sort in java?
Why singleton pattern is better than creating singleton class with static instance?
How many types of threads are there in java?
What is the use of math abs in java?
Explain about the main() method in java?
What does the “final” keyword mean in front of a variable? A method? A class?
How do generics work in java?
What are measurable parameters?
Are strings immutable in java?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
Explain the importance of join() method in thread class?
What are the parts of a method?
What does system out println () do?