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 the use of parseint in java?
Can a class have more than one object?
How can we pass argument to a function by reference instead of pass by value?
What happens when you add a double value to a string?
What is slash r?
How many types of string data types are there?
Can a constructor be private and how are this() and super() method used with constructor?
What is the list interface?
What is communist flag?
Can we serialize arraylist in java?
Is arraylist dynamic in java?
What is method overriding in java ?
Can a class be private?
What is codebase?
How many bits is a char?