what is the difference between HashMap and Hashtable

Answer Posted / rohit

Hash table is Synchronized whereas Hash map is Asynchronized.
Hash Map allows one null key and multiple null values
whereas Hash Table does not allow null...

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In how many ways we can do synchronization in java?

529


Explain the difference between runnable and callable interface in java?

589


What is the use of flag?

583


What are namespaces in java?

527


Enlist diffrent types of inheritance supported by java?

489






What is static block?

594


What is a ternary operator in java?

540


Explain wait() method of object class ?

637


Why collection doesn’t extend cloneable and serializable interfaces?

648


Variable of the boolean type is automatically initialized as?

597


Explain java thread life cycle.

583


What is the function of java?

517


Write a program in java to create a doubly linked list containing n nodes.

558


What are internal variables?

559


What is the name of the java compiler?

528