what is the difference between HashMap and Hashtable

Answer Posted / venkatesh marni

in the HashMap & Hashtable wen ever key values are Same then
it maps only to the value which is mapped at last.
REFER to the ANS.9 above we can access only one value.

but Hashtable is Synchronized one and it wont stores any
null values.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which eclipse is best for java?

502


What is float in java?

544


What is the difference between stringbuffer and stringbuilder?

557


What is the purpose of void class?

581


what is mutual exclusion? : Java thread

528






Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?

586


Can Exception handling we can handle multiple catch blocks?

621


What are the 5 types of research methods?

568


What is the purpose of main function in java?

516


Is node a data type in java?

473


What is the use of join method?

549


What does java se mean?

572


What happens if we don’t override run method ?

547


What is singleton class in ruby?

537


If an application has multiple classes in it, is it okay to have a main method in more than one class?

515