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 do you declare an empty string?
What is a databasemetadata?
Does java have extension methods?
Which collection does not allow duplicates in java?
What is super constructor?
How to make a write-only class in java?
Explain inheritance in java?
Can a class be protected in java?
Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?
What happens if a constructor is declared private?
What is default exception handling in java?
Is 0 a real number?
what is encapsulation in java? Explain
What is meant by class loader? How many types are there? When will we use them?
Explain how to convert any java object into byte array.