what is Hashmap & Hashtable wirh example?
Answer Posted / rameshreddy.k
---HashTable is synchronised BUT hashmap is not synchronised
---HashTable not allow null keys and null values BUT
HashMap allow only one null key and multiple null values
---HashTable not allow Duplicate keys and Douplicate values
are allowed.
| Is This Answer Correct ? | 12 Yes | 3 No |
Post New Answer View All Answers
What is the difference between public, private, protected, and friend access?
Can we use string in switch case in java?
Explain about abstract classes in java?
What is the difference between equals() and == in java?
How do you break a loop?
Can you extend main method in java?
What is private static in java?
Which is bigger double or float?
What is the purpose of the strictfp keyword?
What is the difference between compile-time polymorphism and runtime polymorphism?
Explain about core java?
What does java final mean?
What is locale?
What is t type java?
What is empty string literal in java?