what is Hashmap & Hashtable wirh example?
Answer Posted / sivadasan
Hashmap is not Synchronized where as Hashtable is
Synchronized.
Hashmap allows null values as keys.
Hashtable doesn't allows null values as keys.
| Is This Answer Correct ? | 3 Yes | 6 No |
Post New Answer View All Answers
How variables are declared?
what is aggregation in java?
Which is better singleton or static class?
why an outer class cannot be declared as private?
What are memory tables?
Explain the polymorphism principle?
What is number data type in java?
what are synchronized methods and synchronized statements? : Java thread
Why collection doesn’t extend cloneable and serializable interfaces?
Can you give names of Container classes?
Why hashcode is used in java?
how to one war file class to another war file class?
What are the classes of java?
Can we have return statement in finally clause? What will happen?
Can we pass a primitive type by reference in java? How