what is the difference between HashMap and Hashtable
Answer Posted / regalla naresh reddy
Hash Table is a legacy Class Whereas HashMap belongs to the
collections package.
HashMap allows null key and values..but it allows only one
null key and multiple null values...Whereas the HashTable
wont allow the null key and values..
| Is This Answer Correct ? | 15 Yes | 6 No |
Post New Answer View All Answers
What is variable explain with example?
Can you explain the usages of class.forname()?
Can we write class inside a class in java?
How to use arraylist in java netbeans?
Define a package.
Who found java?
What are drawbacks of singleton class?
How does arrays sort work in java?
What is a data structure java?
What do you mean by chromounits in java8?
How many types of string data types are there?
What is difference between classpath and path variables in java?
Is string a datatype?
How do you square a number in java?
What are the 4 types of research methods?